Skip to content

Commit 3ed2581

Browse files
authored
Merge pull request #834 from badejayayesubabu/SURF-2121
docs(pill): implement and document attrs and vars
2 parents ca652aa + 504ed40 commit 3ed2581

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/elements/hx-pill/_shadow.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
align-items: center;
2121
color: var(--hxDismiss-color, $gray-600);
2222
display: inline-flex;
23-
height: 1.5em;
2423
justify-content: center;
2524
margin: 0 -0.5rem 0 0;
2625
width: 1.5em;

src/scss/components/pill/_index.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
hx-pill {
22
background-color: $gray-400;
3+
background-color: var(--hxPill-bgcolor, $gray-400);
34
border-radius: 1em;
45
color: $gray-900;
6+
color: var(--hxPill-color, $gray-900);
57
display: inline-block;
68
line-height: 1.5;
79
}
810

911
hx-status {
1012
background-color: transparent;
1113
border: 1px solid $gray-750;
14+
border: 1px solid var(--hxStatus-border, $gray-750);
1215
border-radius: 1em; // 10px
1316
color: $gray-750;
17+
color: var(--hxStatus-color, $gray-750);
1418
display: inline-block;
1519
font-size: 0.625rem; // 10px
1620
height: 1rem;
@@ -25,42 +29,60 @@ hx-status {
2529

2630
&.hxEmphasisGray {
2731
border-color: $gray-900;
32+
border-color: var(--hxStatus-hxEmphasisGray-border-color, $gray-900);
2833
color: $gray-900;
34+
color: var(--hxStatus-hxEmphasisGray-color, $gray-900);
2935
}
3036

3137
&.hxEmphasisPurple {
3238
border-color: $purple-500;
39+
border-color: var(--hxStatus-hxEmphasisPurple-border-color, $purple-500);
3340
color: $purple-500;
41+
color: var(--hxStatus-hxEmphasisPurple-color, $purple-500);
3442
}
3543

3644
&.hxSubdued {
3745
border-color: $gray-600;
46+
border-color: var(--hxStatus-hxSubdued-border-color, $gray-600);
3847
color: $gray-600;
48+
color: var(--hxStatus-hxSubdued-color, $gray-600);
3949
font-size: 0.625rem;
4050
line-height: 0.5rem;
4151
}
4252

4353
&.hxFill {
4454
background-color: $gray-750;
55+
background-color: var(--hxStatus-hxFill-bgcolor, $gray-750);
4556
border-color: $gray-750;
57+
border-color: var(--hxStatus-hxFill-border-color, $gray-750);
4658
color: $gray-0;
59+
color: var(--hxStatus-hxFill-color, $gray-0);
4760

4861
&.hxEmphasisGray {
4962
background-color: $gray-900;
63+
background-color: var(--hxStatus-hxFill-hxEmphasisGray-bgcolor, $gray-900);
5064
border-color: $gray-900;
65+
border-color: var(--hxStatus-hxFill-hxEmphasisGray-border-color, $gray-900);
5166
color: $gray-0;
67+
color: var(--hxStatus-hxFill-hxEmphasisGray-color, $gray-0);
5268
}
5369

5470
&.hxEmphasisPurple {
5571
background-color: $purple-500;
72+
background-color: var(--hxStatus-hxFill-hxEmphasisPurple-bgcolor, $purple-500);
5673
border-color: $purple-500;
74+
border-color: var(--hxStatus-hxFill-hxEmphasisPurple-border-color, $purple-500);
5775
color: $gray-0;
76+
color: var(--hxStatus-hxFill-hxEmphasisPurple-color, $gray-0);
5877
}
5978

6079
&.hxSubdued {
6180
background-color: $gray-600;
81+
background-color: var(--hxStatus-hxFill-hxSubdued-bgcolor, $gray-600);
6282
border-color: $gray-600;
83+
border-color: var(--hxStatus-hxFill-hxSubdued-border-color, $gray-600);
6384
color: $gray-0;
85+
color: var(--hxStatus-hxFill-hxSubdued-color, $gray-0);
6486
}
6587
}
6688
}

0 commit comments

Comments
 (0)