|
16 | 16 | } |
17 | 17 |
|
18 | 18 | .button:focus-visible { |
19 | | - /* Todo: var does not exist for 1px */ |
20 | 19 | outline: 1px solid var(--rs-color-border-accent-emphasis); |
21 | 20 | } |
22 | 21 |
|
|
33 | 32 | .button-disabled { |
34 | 33 | opacity: 0.5; |
35 | 34 | pointer-events: initial; |
| 35 | + cursor: default; |
36 | 36 | } |
37 | 37 |
|
38 | 38 | .button:disabled:hover, |
|
60 | 60 | } |
61 | 61 |
|
62 | 62 | .button-solid:hover, |
63 | | -.button-solid:active, |
64 | | -.button-solid[data-radix-popover-trigger][data-state="open"], |
65 | | -.button-solid[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 63 | +.button-solid:active { |
66 | 64 | background-color: var(--rs-color-background-accent-emphasis-hover); |
67 | 65 | } |
68 | 66 |
|
69 | 67 | .button-solid.button-disabled:hover, |
70 | | -.button-solid.button-disabled:active, |
71 | | -.button-solid[data-radix-popover-trigger][data-state="open"], |
72 | | -.button-solid.button-disabled[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 68 | +.button-solid.button-disabled:active { |
73 | 69 | color: var(--rs-color-foreground-accent-emphasis); |
74 | 70 | background-color: var(--rs-color-background-accent-emphasis); |
75 | 71 | } |
76 | 72 |
|
77 | 73 | .button-solid.button-loading:hover, |
78 | | -.button-solid.button-loading:active, |
79 | | -.button-solid.button-loading[data-radix-popover-trigger][data-state="open"], |
80 | | -.button-solid.button-loading[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 74 | +.button-solid.button-loading:active { |
81 | 75 | background-color: var(--rs-color-background-accent-emphasis); |
82 | 76 | } |
83 | 77 |
|
|
108 | 102 | .button-outline:disabled:hover, |
109 | 103 | .button-outline.button-disabled:hover, |
110 | 104 | .button-outline:disabled:active, |
111 | | -.button-outline.button-disabled:active, |
112 | | -.button-outline:disabled[data-radix-popover-trigger][data-state="open"], |
113 | | -.button-outline.button-disabled[data-radix-popover-trigger][data-state="open"], |
114 | | -.button-outline:disabled[data-radix-dropdown-menu-trigger][data-state="open"], |
115 | | -.button-outline.button-disabled[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 105 | +.button-outline.button-disabled:active { |
116 | 106 | background-color: transparent; |
117 | 107 | color: var(--rs-color-foreground-accent-primary); |
118 | 108 | border-color: var(--rs-color-border-accent-emphasis); |
119 | 109 | } |
120 | 110 |
|
121 | 111 | .button-outline.button-loading:hover, |
122 | | -.button-outline.button-loading:active, |
123 | | -.button-outline.button-loading[data-radix-popover-trigger][data-state="open"], |
124 | | -.button-outline.button-loading[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 112 | +.button-outline.button-loading:active { |
125 | 113 | background-color: transparent; |
126 | 114 | color: var(--rs-color-foreground-accent-primary); |
127 | 115 | border-color: var(--rs-color-border-accent-primary); |
|
158 | 146 | } |
159 | 147 |
|
160 | 148 | .button-ghost:hover, |
161 | | -.button-ghost:active, |
162 | | -.button-ghost[data-radix-popover-trigger][data-state="open"], |
163 | | -.button-ghost[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 149 | +.button-ghost:active { |
164 | 150 | background-color: var(--rs-color-background-base-primary-hover); |
165 | 151 | } |
166 | 152 |
|
|
172 | 158 | .button-ghost:disabled:hover, |
173 | 159 | .button-ghost.button-disabled:hover, |
174 | 160 | .button-ghost:disabled:active, |
175 | | -.button-ghost.button-disabled:active, |
176 | | -.button-ghost:disabled[data-radix-popover-trigger][data-state="open"], |
177 | | -.button-ghost.button-disabled[data-radix-popover-trigger][data-state="open"], |
178 | | -.button-ghost:disabled[data-radix-dropdown-menu-trigger][data-state="open"], |
179 | | -.button-ghost.button-disabled[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 161 | +.button-ghost.button-disabled:active { |
180 | 162 | color: var(--rs-color-foreground-base-primary); |
181 | 163 | background-color: transparent; |
182 | 164 | border-color: var(--rs-color-border-base-primary); |
183 | 165 | } |
184 | 166 |
|
185 | 167 | .button-ghost.button-loading:hover, |
186 | | -.button-ghost.button-loading:active, |
187 | | -.button-ghost.button-loading[data-radix-popover-trigger][data-state="open"], |
188 | | -.button-ghost.button-loading[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 168 | +.button-ghost.button-loading:active { |
189 | 169 | background-color: transparent; |
190 | 170 | border-color: var(--rs-color-border-base-primary); |
191 | 171 | } |
|
196 | 176 | } |
197 | 177 |
|
198 | 178 | .button-text:hover, |
199 | | -.button-text:active, |
200 | | -.button-text[data-radix-popover-trigger][data-state="open"], |
201 | | -.button-text[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 179 | +.button-text:active { |
202 | 180 | background-color: var(--rs-color-background-base-primary-hover); |
203 | 181 | } |
204 | 182 |
|
|
208 | 186 | } |
209 | 187 |
|
210 | 188 | .button-text.button-loading:hover, |
211 | | -.button-text.button-loading:active, |
212 | | -.button-text.button-loading[data-radix-popover-trigger][data-state="open"], |
213 | | -.button-text.button-loading[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 189 | +.button-text.button-loading:active { |
214 | 190 | background-color: transparent; |
215 | 191 | } |
216 | 192 |
|
217 | 193 | .button-text:disabled:hover, |
218 | 194 | .button-text.button-disabled:hover, |
219 | 195 | .button-text:disabled:active, |
220 | | -.button-text.button-disabled:active, |
221 | | -.button-text:disabled[data-radix-popover-trigger][data-state="open"], |
222 | | -.button-text.button-disabled[data-radix-popover-trigger][data-state="open"], |
223 | | -.button-text:disabled[data-radix-dropdown-menu-trigger][data-state="open"], |
224 | | -.button-text.button-disabled[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 196 | +.button-text.button-disabled:active { |
225 | 197 | color: var(--rs-color-foreground-base-primary); |
226 | 198 | background-color: transparent; |
227 | 199 | } |
|
232 | 204 | } |
233 | 205 |
|
234 | 206 | .button-loading:hover, |
235 | | -.button-loading:active, |
236 | | -.button-loading[data-radix-popover-trigger][data-state="open"], |
237 | | -.button-loading[data-radix-dropdown-menu-trigger][data-state="open"] { |
| 207 | +.button-loading:active { |
238 | 208 | background-color: inherit; |
239 | 209 | } |
240 | 210 |
|
241 | | -.loader { |
242 | | - border: var(--rs-space-1) solid var(--rs-color-background-base-primary); |
243 | | - border-top: var(--rs-space-1) solid var(--rs-color-foreground-base-primary); |
244 | | - border-radius: 50%; |
245 | | - /* Todo: var does not exist for 10px */ |
246 | | - width: 10px; |
247 | | - height: 10px; |
248 | | -} |
249 | | - |
250 | 211 | @media (prefers-reduced-motion: no-preference) { |
251 | 212 | .button { |
252 | 213 | transition: all 0.2s ease-in-out; |
253 | 214 | } |
254 | | - |
255 | | - .loader { |
256 | | - animation: spin 1s linear infinite; |
257 | | - } |
258 | 215 | } |
259 | 216 |
|
260 | 217 | .loader-text { |
|
0 commit comments