Skip to content

Commit 634a97d

Browse files
authored
feat(fuselage): Tag Featured Variant (#935)
1 parent 3025cc3 commit 634a97d

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

packages/fuselage/src/components/Tag/Tag.stories.tsx

+11-9
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ Secondary.args = {
5050
variant: 'secondary',
5151
};
5252

53-
export const WithIcon = Template.bind({});
54-
WithIcon.args = {
55-
children: (
56-
<>
57-
<Icon size='x12' mie='x4' name='team-lock' /> Team
58-
</>
59-
),
60-
};
61-
6253
export const _Danger = Template.bind({});
6354
_Danger.args = {
6455
variant: 'danger',
@@ -73,6 +64,17 @@ Warning.args = {
7364
variant: 'warning',
7465
};
7566

67+
export const Featured = Template.bind({});
68+
Featured.args = {
69+
variant: 'featured',
70+
};
71+
72+
export const WithIcon = Template.bind({});
73+
WithIcon.args = {
74+
icon: <Icon size='x12' mie='x4' name='team-lock' />,
75+
children: 'Team',
76+
};
77+
7678
export const Disabled = Template.bind({});
7779
Disabled.args = {
7880
disabled: true,

packages/fuselage/src/components/Tag/Tag.styles.scss

+25
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,19 @@ $tag-colors-warning-hover-background-color: theme(
8484
colors.button(warning-hover)
8585
);
8686

87+
$tag-colors-featured-color: theme(
88+
'tag-colors-featured-color',
89+
colors.button(on-primary)
90+
);
91+
$tag-colors-featured-background-color: theme(
92+
'tag-colors-featured-background-color',
93+
colors.surface(featured)
94+
);
95+
$tag-colors-featured-hover-background-color: theme(
96+
'tag-colors-featured-hover-background-color',
97+
colors.surface(featured-hover)
98+
);
99+
87100
$tag-colors-disabled-color: theme(
88101
'tag-colors-disabled-color',
89102
colors.font(secondary-info)
@@ -185,6 +198,18 @@ $tag-colors-disabled-background-color: theme(
185198
}
186199
}
187200

201+
&--featured {
202+
color: $tag-colors-featured-color;
203+
background-color: $tag-colors-featured-background-color;
204+
205+
&.rcx-tag--clickable {
206+
&:hover {
207+
color: $tag-colors-featured-color;
208+
background-color: $tag-colors-featured-hover-background-color;
209+
}
210+
}
211+
}
212+
188213
&--disabled {
189214
cursor: not-allowed;
190215

0 commit comments

Comments
 (0)