@@ -128,6 +128,10 @@ const useStyles = (
128128 background-color : ${ theme . vars . colors . primary . main } ;
129129 opacity : 0.8 ;
130130 }
131+ & : focus : not (: disabled ) {
132+ background-color : ${ theme . vars . colors . primary . main } ;
133+ opacity : 0.8 ;
134+ }
131135 ` ,
132136 'primary-outline' : css `
133137 background-color : transparent;
@@ -142,30 +146,50 @@ const useStyles = (
142146 color : ${ theme . vars . colors . primary . contrastText } ;
143147 opacity : 0.9 ;
144148 }
149+ & : focus : not (: disabled ) {
150+ background-color : ${ theme . vars . colors . primary . main } ;
151+ color : ${ theme . vars . colors . primary . contrastText } ;
152+ opacity : 0.9 ;
153+ }
145154 ` ,
146155 'primary-text' : css `
147156 background-color : transparent;
148157 color : ${ theme . vars . colors . primary . main } ;
149158 border-color : transparent;
150159 & : hover : not (: disabled ) {
160+ border-color : transparent;
151161 background-color : ${ theme . vars . colors . action . hover } ;
152162 }
153163 & : active : not (: disabled ) {
164+ border-color : transparent;
154165 background-color : ${ theme . vars . colors . action . selected } ;
155166 }
167+ & : focus : not (: disabled ) {
168+ border-color : transparent;
169+ background-color : ${ theme . vars . colors . action . focus } ;
170+ outline : none;
171+ }
156172 ` ,
157173 'primary-icon' : css `
158174 background-color : transparent;
159175 color : ${ theme . vars . colors . primary . main } ;
160176 border-color : transparent;
161177 & : hover : not (: disabled ) {
178+ border-color : transparent;
162179 background-color : ${ theme . vars . colors . action . hover } ;
163180 color : ${ theme . vars . colors . primary . dark } ;
164181 }
165182 & : active : not (: disabled ) {
183+ border-color : transparent;
166184 background-color : ${ theme . vars . colors . action . selected } ;
167185 color : ${ theme . vars . colors . primary . dark } ;
168186 }
187+ & : focus : not (: disabled ) {
188+ border-color : transparent;
189+ background-color : ${ theme . vars . colors . action . focus } ;
190+ color : ${ theme . vars . colors . primary . dark } ;
191+ outline : none;
192+ }
169193 ` ,
170194 'secondary-solid' : css `
171195 background-color : ${ theme . vars . colors . secondary . main } ;
@@ -179,6 +203,10 @@ const useStyles = (
179203 background-color : ${ theme . vars . colors . secondary . main } ;
180204 opacity : 0.8 ;
181205 }
206+ & : focus : not (: disabled ) {
207+ background-color : ${ theme . vars . colors . secondary . main } ;
208+ opacity : 0.8 ;
209+ }
182210 ` ,
183211 'secondary-outline' : css `
184212 background-color : transparent;
@@ -193,30 +221,50 @@ const useStyles = (
193221 color : ${ theme . vars . colors . secondary . contrastText } ;
194222 opacity : 0.9 ;
195223 }
224+ & : focus : not (: disabled ) {
225+ background-color : ${ theme . vars . colors . secondary . main } ;
226+ color : ${ theme . vars . colors . secondary . contrastText } ;
227+ opacity : 0.9 ;
228+ }
196229 ` ,
197230 'secondary-text' : css `
198231 background-color : transparent;
199232 color : ${ theme . vars . colors . secondary . main } ;
200233 border-color : transparent;
201234 & : hover : not (: disabled ) {
235+ border-color : transparent;
202236 background-color : ${ theme . vars . colors . action . hover } ;
203237 }
204238 & : active : not (: disabled ) {
239+ border-color : transparent;
205240 background-color : ${ theme . vars . colors . action . selected } ;
206241 }
242+ & : focus : not (: disabled ) {
243+ border-color : transparent;
244+ background-color : ${ theme . vars . colors . action . focus } ;
245+ outline : none;
246+ }
207247 ` ,
208248 'secondary-icon' : css `
209249 background-color : transparent;
210250 color : ${ theme . vars . colors . secondary . main } ;
211251 border-color : transparent;
212252 & : hover : not (: disabled ) {
253+ border-color : transparent;
213254 background-color : ${ theme . vars . colors . action . hover } ;
214255 color : ${ theme . vars . colors . secondary . dark } ;
215256 }
216257 & : active : not (: disabled ) {
258+ border-color : transparent;
217259 background-color : ${ theme . vars . colors . action . selected } ;
218260 color : ${ theme . vars . colors . secondary . dark } ;
219261 }
262+ & : focus : not (: disabled ) {
263+ border-color : transparent;
264+ background-color : ${ theme . vars . colors . action . focus } ;
265+ color : ${ theme . vars . colors . secondary . dark } ;
266+ outline : none;
267+ }
220268 ` ,
221269 'tertiary-solid' : css `
222270 background-color : ${ theme . vars . colors . text . secondary } ;
@@ -231,6 +279,11 @@ const useStyles = (
231279 color : ${ theme . vars . colors . background . surface } ;
232280 opacity : 0.9 ;
233281 }
282+ & : focus : not (: disabled ) {
283+ background-color : ${ theme . vars . colors . text . primary } ;
284+ color : ${ theme . vars . colors . background . surface } ;
285+ opacity : 0.9 ;
286+ }
234287 ` ,
235288 'tertiary-outline' : css `
236289 background-color : transparent;
@@ -244,32 +297,52 @@ const useStyles = (
244297 background-color : ${ theme . vars . colors . action . selected } ;
245298 border-color : ${ theme . vars . colors . text . primary } ;
246299 }
300+ & : focus : not (: disabled ) {
301+ background-color : ${ theme . vars . colors . action . focus } ;
302+ border-color : ${ theme . vars . colors . text . primary } ;
303+ }
247304 ` ,
248305 'tertiary-text' : css `
249306 background-color : transparent;
250307 color : ${ theme . vars . colors . text . secondary } ;
251308 border-color : transparent;
252309 & : hover : not (: disabled ) {
310+ border-color : transparent;
253311 background-color : ${ theme . vars . colors . action . hover } ;
254312 color : ${ theme . vars . colors . text . primary } ;
255313 }
256314 & : active : not (: disabled ) {
315+ border-color : transparent;
257316 background-color : ${ theme . vars . colors . action . selected } ;
258317 color : ${ theme . vars . colors . text . primary } ;
259318 }
319+ & : focus : not (: disabled ) {
320+ border-color : transparent;
321+ background-color : ${ theme . vars . colors . action . focus } ;
322+ color : ${ theme . vars . colors . text . primary } ;
323+ outline : none;
324+ }
260325 ` ,
261326 'tertiary-icon' : css `
262327 background-color : transparent;
263328 color : ${ theme . vars . colors . text . secondary } ;
264329 border-color : transparent;
265330 & : hover : not (: disabled ) {
331+ border-color : transparent;
266332 background-color : ${ theme . vars . colors . action . hover } ;
267333 color : ${ theme . vars . colors . text . primary } ;
268334 }
269335 & : active : not (: disabled ) {
336+ border-color : transparent;
270337 background-color : ${ theme . vars . colors . action . selected } ;
271338 color : ${ theme . vars . colors . text . primary } ;
272339 }
340+ & : focus : not (: disabled ) {
341+ border-color : transparent;
342+ background-color : ${ theme . vars . colors . action . focus } ;
343+ color : ${ theme . vars . colors . text . primary } ;
344+ outline : none;
345+ }
273346 ` ,
274347 } ;
275348
0 commit comments