File tree 4 files changed +62
-4
lines changed
docs/storybook/stories/Color/Patterns
src/tokens/functional/color 4 files changed +62
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @primer/primitives " : patch
3
+ ---
4
+
5
+ Make ` invisible ` button disabled state background and border transparent
Original file line number Diff line number Diff line change @@ -778,3 +778,56 @@ export const Tooltip = () => {
778
778
</ Table . Container >
779
779
)
780
780
}
781
+
782
+ export const Treeview = ( ) => {
783
+ const data = getTokensByName ( colorTokens , 'treeViewItem' ) . map ( token => {
784
+ return {
785
+ id : token . name ,
786
+ ...token ,
787
+ }
788
+ } )
789
+ return (
790
+ < Table . Container >
791
+ < h1 className = "sr-only" id = "treeViewItem" >
792
+ Tooltip
793
+ </ h1 >
794
+ < DataTable
795
+ aria-labelledby = "treeViewItem"
796
+ data = { data }
797
+ columns = { [
798
+ {
799
+ header : 'Sample' ,
800
+ field : 'name' ,
801
+ rowHeader : true ,
802
+ renderCell : row => {
803
+ return (
804
+ < ColorTokenSwatch
805
+ bgColor = { row . name . includes ( 'bgColor' ) || row . name . includes ( 'iconColor' ) ? row . name : undefined }
806
+ textColor = { row . name . includes ( 'fgColor' ) ? row . name : undefined }
807
+ shadowColor = { row . name . includes ( 'shadow' ) ? row . name : undefined }
808
+ borderColor = { row . name . includes ( 'borderColor' ) ? row . name : undefined }
809
+ />
810
+ )
811
+ } ,
812
+ } ,
813
+ {
814
+ header : 'Token' ,
815
+ field : 'name' ,
816
+ rowHeader : true ,
817
+ renderCell : row => {
818
+ return < InlineCode value = { row . name } copyClipboard cssVar />
819
+ } ,
820
+ } ,
821
+ {
822
+ header : 'Output value' ,
823
+ field : 'value' ,
824
+ rowHeader : true ,
825
+ renderCell : row => {
826
+ return < p > { row . value } </ p >
827
+ } ,
828
+ } ,
829
+ ] }
830
+ />
831
+ </ Table . Container >
832
+ )
833
+ }
Original file line number Diff line number Diff line change 1078
1078
} ,
1079
1079
} ,
1080
1080
disabled : {
1081
- $value : '{control.transparent.bgColor.disabled }' ,
1081
+ $value : '{base.color.transparent }' ,
1082
1082
$type : 'color' ,
1083
1083
$extensions : {
1084
1084
'org.primer.figma' : {
1113
1113
} ,
1114
1114
} ,
1115
1115
disabled : {
1116
- $value : '{control.borderColor.disabled }' ,
1116
+ $value : '{base.color.transparent }' ,
1117
1117
$type : 'color' ,
1118
1118
$extensions : {
1119
1119
'org.primer.figma' : {
Original file line number Diff line number Diff line change 1071
1071
} ,
1072
1072
} ,
1073
1073
disabled : {
1074
- $value : '{control.transparent.bgColor.disabled }' ,
1074
+ $value : '{base.color.transparent }' ,
1075
1075
$type : 'color' ,
1076
1076
$extensions : {
1077
1077
'org.primer.figma' : {
1106
1106
} ,
1107
1107
} ,
1108
1108
disabled : {
1109
- $value : '{control.borderColor.disabled }' ,
1109
+ $value : '{base.color.transparent }' ,
1110
1110
$type : 'color' ,
1111
1111
$extensions : {
1112
1112
'org.primer.figma' : {
You can’t perform that action at this time.
0 commit comments