Add a selection and outline to flights-app.
This is just to get basic paint coverage of selections and outlines on positioned elements. TBR=esprehn@chromium.org Review URL: https://codereview.chromium.org/886683002
This commit is contained in:
parent
931f29c80e
commit
45d7d34530
@ -22,6 +22,11 @@
|
||||
</template>
|
||||
<script>
|
||||
module.exports = class extends SkyElement {
|
||||
attached() {
|
||||
var sel = window.getSelection();
|
||||
var input = this.shadowRoot.querySelector('t');
|
||||
sel.selectAllChildren(input);
|
||||
}
|
||||
}.register();
|
||||
</script>
|
||||
</sky-element>
|
||||
|
@ -23,6 +23,16 @@
|
||||
flex-shrink: 0;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.close-box {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
right: 3px;
|
||||
width: 1em;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
outline: 1px solid #AEA477;
|
||||
}
|
||||
</style>
|
||||
<div class="header">
|
||||
<content select=".toast-icon" />
|
||||
@ -30,6 +40,9 @@
|
||||
<div class="content">
|
||||
<content select=".toast-content" />
|
||||
</div>
|
||||
<div class="close-box">
|
||||
X
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
module.exports = class extends SkyElement {
|
||||
|
Loading…
x
Reference in New Issue
Block a user