Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.Fuselage
Commits
50a074bc
Unverified
Commit
50a074bc
authored
Mar 20, 2020
by
Guilherme Gazzo
Committed by
GitHub
Mar 20, 2020
Browse files
fix: Improve tag/badge style (#173)
parent
b82b0580
Changes
2
Hide whitespace changes
Inline
Side-by-side
packages/fuselage/src/components/Tag/index.js
View file @
50a074bc
...
...
@@ -6,12 +6,14 @@ import { Box } from '../..';
export
function
Tag
({
variant
=
'
secondary
'
,
disabled
,
textStyle
=
'
micro
'
,
round
,
onClick
,
...
props
})
{
return
<
Box
is
=
'
div
'
textStyle
=
{
textStyle
}
componentClassName
=
'
rcx-tag
'
mod
-
secondary
=
{
variant
===
'
secondary
'
}
mod
-
primary
=
{
variant
===
'
primary
'
}
...
...
@@ -25,6 +27,10 @@ export function Tag({
}
Tag
.
propTypes
=
{
textStyle
:
PropTypes
.
oneOf
([
'
h1
'
,
'
s1
'
,
'
s2
'
,
'
p1
'
,
'
p2
'
,
'
c1
'
,
'
c2
'
,
'
micro
'
,
'
mono
'
,
'
headline
'
,
'
subtitle
'
,
'
paragraph
'
,
'
caption
'
,
]),
variant
:
PropTypes
.
oneOf
([
'
secondary
'
,
'
primary
'
,
'
danger
'
]),
round
:
PropTypes
.
bool
,
disabled
:
PropTypes
.
bool
,
...
...
packages/fuselage/src/components/Tag/styles.scss
View file @
50a074bc
...
...
@@ -11,8 +11,6 @@
border-radius
:
$spaces-x4
;
@include
use-text-style
(
micro
);
&
--secondary
{
color
:
$colors-b500
;
background-color
:
$colors-b100
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment