File tree Expand file tree Collapse file tree 3 files changed +58
-55
lines changed Expand file tree Collapse file tree 3 files changed +58
-55
lines changed Original file line number Diff line number Diff line change 1- < div id ="wrapper ">
2- < hx-icon id ="icon " type ="info-circle "> </ hx-icon >
3- < span id ="content ">
4- < span id ="status "> </ span >
1+ < div id ="hxAlert ">
2+ < hx-icon id ="hxIcon " type ="info-circle "> </ hx-icon >
3+ < span id ="hxContent ">
4+ < span id ="hxStatus "> </ span >
55 < slot > </ slot >
66 </ span >
7- < button id ="cta " type ="button "> </ button >
8- < button id ="dismiss " type ="button ">
7+ < button id ="hxCta " type ="button "> </ button >
8+ < button id ="hxDismiss " type ="button ">
99 < hx-icon type ="times "> </ hx-icon >
1010 </ button >
1111</ div >
Original file line number Diff line number Diff line change @@ -190,21 +190,21 @@ export class HXAlertElement extends HXElement {
190190
191191 /** @private */
192192 get _elIcon ( ) {
193- return this . shadowRoot . getElementById ( 'icon ' ) ;
193+ return this . shadowRoot . getElementById ( 'hxIcon ' ) ;
194194 }
195195
196196 /** @private */
197197 get _elStatus ( ) {
198- return this . shadowRoot . getElementById ( 'status ' ) ;
198+ return this . shadowRoot . getElementById ( 'hxStatus ' ) ;
199199 }
200200
201201 /** @private */
202202 get _btnCta ( ) {
203- return this . shadowRoot . getElementById ( 'cta ' ) ;
203+ return this . shadowRoot . getElementById ( 'hxCta ' ) ;
204204 }
205205
206206 /** @private */
207207 get _btnDismiss ( ) {
208- return this . shadowRoot . getElementById ( 'dismiss ' ) ;
208+ return this . shadowRoot . getElementById ( 'hxDismiss ' ) ;
209209 }
210210}
Original file line number Diff line number Diff line change 11@import " ./HXElement" ;
22@import " elements/hx-icon" ;
33
4- button {
5- align-self : flex-start ;
6- background-color : transparent ;
7- border : 0 ;
8- cursor : pointer ;
9- }
104
11- #wrapper {
5+ #hxAlert {
126 display : flex ;
13- }
14-
15- #icon {
16- flex-shrink : 0 ;
17- margin : 1rem ;
18- }
197
20- #content {
21- flex-grow : 1 ;
22- margin-right : 1rem ;
23- padding : 1rem 0 ;
24- }
8+ button {
9+ align-self : flex-start ;
10+ background-color : transparent ;
11+ border : 0 ;
12+ cursor : pointer ;
13+ }
2514
26- #status {
27- font-weight : 500 ;
28- text-transform : uppercase ;
15+ #hxIcon {
16+ flex-shrink : 0 ;
17+ margin : 1rem ;
18+ }
2919
30- & :after {
31- content : " :" ;
20+ #hxContent {
21+ flex-grow : 1 ;
22+ margin-right : 1rem ;
23+ padding : 1rem 0 ;
3224 }
3325
34- & :empty {
35- display : none ;
26+ #hxStatus {
27+ font-weight : 500 ;
28+ text-transform : uppercase ;
29+
30+ & :after {
31+ content : " :" ;
32+ }
33+
34+ & :empty {
35+ display : none ;
36+ }
3637 }
37- }
3838
39- #cta {
40- flex-shrink : 0 ;
41- font-weight : 500 ;
42- padding : 1rem 0 ;
43- text-transform : uppercase ;
44- white-space : nowrap ;
39+ #hxCta {
40+ flex-shrink : 0 ;
41+ font-weight : 500 ;
42+ padding : 1rem 0 ;
43+ text-transform : uppercase ;
44+ white-space : nowrap ;
4545
46- & :empty {
47- display : none ;
46+ & :empty {
47+ display : none ;
48+ }
4849 }
49- }
5050
51- #dismiss {
52- flex-shrink : 0 ;
53- height : 3rem ;
54- padding : 1rem ;
55- width : 3rem ;
51+ #hxDismiss {
52+ flex-shrink : 0 ;
53+ height : 3rem ;
54+ padding : 1rem ;
55+ width : 3rem ;
56+ }
5657}
5758
5859:host ([static ]) {
59- #dismiss {
60- display : none ;
61- }
60+ #hxAlert {
61+ #hxDismiss {
62+ display : none ;
63+ }
6264
63- #cta {
64- margin-right : 1rem ;
65+ #hxCta {
66+ margin-right : 1rem ;
67+ }
6568 }
6669}
You can’t perform that action at this time.
0 commit comments