Skip to content

Commit 71ddf9c

Browse files
Cathy SillerRyan A. Johnson
authored andcommitted
fix(Pill): correct ShadyCSS styles
1 parent 50c3fdc commit 71ddf9c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<div id="wrapper">
1+
<div id="hxPill">
22
<slot></slot>
3-
<button id="dismiss" type="button">
3+
<button id="hxDismiss" type="button">
44
<hx-icon type="times"></hx-icon>
55
</button>
66
</div>

src/helix-ui/elements/HXPillElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ export class HXPillElement extends HXElement {
5757

5858
/** @private */
5959
get _btnDismiss () {
60-
return this.shadowRoot.getElementById('dismiss');
60+
return this.shadowRoot.getElementById('hxDismiss');
6161
}
6262
}

src/helix-ui/elements/HXPillElement.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ button {
88
padding: 0;
99
}
1010

11-
#wrapper {
11+
#hxPill {
1212
background-color: @gray-400;
1313
border-radius: 1em;
1414
color: @gray-900;
1515
padding: 0 1rem;
1616
white-space: nowrap;
1717
}
1818

19-
#dismiss {
19+
#hxDismiss {
2020
color: @gray-600;
2121
display: none;
2222
height: 1.5em;
@@ -33,7 +33,7 @@ button {
3333
}
3434

3535
:host([dismissable]) {
36-
#dismiss {
36+
#hxDismiss {
3737
display: inline-block;
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)