This repository was archived by the owner on Oct 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-84
lines changed
Expand file tree Collapse file tree 2 files changed +0
-84
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,6 @@ export default {
8888 top : 2px ;
8989 }
9090
91- & --active {
92- @extend %active ;
93- }
94-
9591 & --disabled {
9692 @apply opacity-40 bg-white text-gray-500 cursor-not-allowed ;
9793
@@ -120,32 +116,8 @@ export default {
120116 }
121117 }
122118
123- // All colours share the same active, hover/focus, and disabled styles
124- & :not (.chec-tag--disabled ) {
125- & :active {
126- @extend %active ;
127- }
128-
129- & :hover ,
130- & :focus {
131- @apply bg-gray-500 text-white border-gray- 500;
132-
133- .chec-tag__dismiss {
134- @apply bg-white text-gray- 500;
135- }
136- }
137- }
138-
139119 & __dismiss {
140120 @apply ml-1 w-3 h-3 rounded-full ;
141121 }
142122}
143-
144- %active {
145- @apply bg-gray-400 text-white border-gray- 400;
146-
147- .chec-tag__dismiss {
148- @apply bg-white text-gray- 400;
149- }
150- }
151123 </style >
Original file line number Diff line number Diff line change @@ -58,62 +58,6 @@ import ChecTagGroup from '../../components/ChecTagGroup';
5858 </Story >
5959</Preview >
6060
61- # Tag
62-
63- <Props of = { ChecTag } />
64-
65- <Preview >
66- <Story name = " States" >
67- { {
68- components: {
69- ChecTag ,
70- },
71- props: {
72- tagText: {
73- default: text (' Tag text' , ' I am tag' )
74- },
75- active: {
76- type: Boolean ,
77- default : () => boolean (' Active' , false ),
78- },
79- disabled: {
80- type: Boolean ,
81- default : () => boolean (' Disabled' , false ),
82- },
83- background: {
84- default: select (' Background Color' , [' light' , ' dark' ]),
85- },
86- undismissible: {
87- type: Boolean ,
88- default : () => boolean (' Undismissible' , false ),
89- },
90- },
91- computed: {
92- colors() {
93- return [' dark-grey' , ' white' ];
94- }
95- },
96- methods: {
97- handleDismiss: action (' dismiss' ),
98- },
99- template: `
100- <div class="py-16 w-full flex justify-around" :class="{'bg-gray-600': background === 'dark'}">
101- <div v-for="color in colors" class="mb-4">
102- <ChecTag
103- :color="color"
104- :active="active"
105- :disabled="disabled"
106- :undismissible="undismissible"
107- @dismiss="handleDismiss"
108- >
109- {{ tagText }}
110- </ChecTag>
111- </div>
112- </div> `
113- }}
114- </Story >
115- </Preview >
116-
11761## Group
11862
11963<Preview >
You can’t perform that action at this time.
0 commit comments