File tree Expand file tree Collapse file tree
carbon-react/src/components/Tag
components/src/components/tag
styles/scss/components/tag Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,30 @@ export const Default = () => {
4242 < Tag className = "some-class" type = "gray" size = "sm" title = "Clear Filter" >
4343 { 'Tag content' }
4444 </ Tag >
45+ < Tag
46+ className = "some-class"
47+ type = "cool-gray"
48+ size = "sm"
49+ title = "Clear Filter" >
50+ { 'Tag content' }
51+ </ Tag >
52+ < Tag
53+ className = "some-class"
54+ type = "warm-gray"
55+ size = "sm"
56+ title = "Clear Filter" >
57+ { 'Tag content' }
58+ </ Tag >
59+ < Tag
60+ className = "some-class"
61+ type = "high-contrast"
62+ size = "sm"
63+ title = "Clear Filter" >
64+ { 'Tag content' }
65+ </ Tag >
66+ < Tag className = "some-class" type = "outline" size = "sm" title = "Clear Filter" >
67+ { 'Tag content' }
68+ </ Tag >
4569 </ >
4670 ) ;
4771} ;
Original file line number Diff line number Diff line change 130130 @include tag-theme ($inverse-02 , $inverse-01 , $inverse-hover-ui );
131131 }
132132
133+ .#{$prefix } --tag--outline {
134+ @include tag-theme ($background , $text-01 , $hover-ui );
135+
136+ box-shadow : inset 0 0 0 1px $inverse-02 ;
137+ }
138+
133139 .#{$prefix } --tag--disabled ,
134140 .#{$prefix } --tag--filter.#{$prefix } --tag--disabled ,
135141 .#{$prefix } --tag--interactive.#{$prefix } --tag--disabled {
Original file line number Diff line number Diff line change @@ -6040,6 +6040,7 @@ Map {
60406040 " cool-gray" ,
60416041 " warm-gray" ,
60426042 " high-contrast" ,
6043+ " outline" ,
60436044 ],
60446045 ],
60456046 " type" : " oneOf" ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const TYPES = {
2525 'cool-gray' : 'Cool-Gray' ,
2626 'warm-gray' : 'Warm-Gray' ,
2727 'high-contrast' : 'High-Contrast' ,
28+ outline : 'Outline' ,
2829} ;
2930
3031const Tag = ( {
Original file line number Diff line number Diff line change 114114 );
115115 }
116116
117+ .#{$prefix } --tag--outline {
118+ @include tag-theme ($background , $text-primary , $layer-hover );
119+
120+ box-shadow : inset 0 0 0 1px $background-inverse ;
121+ }
122+
117123 .#{$prefix } --tag--disabled ,
118124 .#{$prefix } --tag--filter.#{$prefix } --tag--disabled ,
119125 .#{$prefix } --tag--interactive.#{$prefix } --tag--disabled {
You can’t perform that action at this time.
0 commit comments