Add a close box to flights-app toast.
This is to get a case of having an outline on an absolutely positioned, overflow:hidden, i.e. a self-painting layer. TBR=esprehn@chromium.org Review URL: https://codereview.chromium.org/878873002
This commit is contained in:
parent
09ffab7233
commit
55b9f393c1
@ -23,6 +23,16 @@
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.close-box {
|
||||||
|
position: absolute;
|
||||||
|
top: 3px;
|
||||||
|
right: 3px;
|
||||||
|
width: 1em;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: center;
|
||||||
|
outline: 1px solid #AEA477;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<content select=".toast-icon" />
|
<content select=".toast-icon" />
|
||||||
@ -30,6 +40,9 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<content select=".toast-content" />
|
<content select=".toast-content" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="close-box">
|
||||||
|
X
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
module.exports = class extends SkyElement {
|
module.exports = class extends SkyElement {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user