Skip to content

Commit 781b3cd

Browse files
authored
IBX-6252: Update hover styles for --selector button (#877)
1 parent 5cb9c51 commit 781b3cd

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/bundle/Resources/public/scss/_buttons.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
color: $ibexa-color-dark;
308308
fill: $ibexa-color-dark;
309309
padding: calculateRem(11px) calculateRem(12px);
310+
pointer-events: auto;
310311

311312
&.ibexa-btn--selected {
312313
background-color: $ibexa-color-info-200;
@@ -326,15 +327,30 @@
326327
}
327328

328329
&:not(.ibexa-btn--selected) {
329-
&:hover,
330330
&:focus {
331331
border-color: $ibexa-color-info;
332+
box-shadow: 0 0 0 calculateRem(4px) rgba($ibexa-color-info, 0.2);
332333
}
333334
}
334335

335336
&:focus {
336337
box-shadow: $ibexa-btn-focus-box-shadow-info;
337338
}
339+
340+
&.disabled,
341+
&[disabled],
342+
&:disabled {
343+
color: $ibexa-color-dark-300;
344+
fill: $ibexa-color-dark-300;
345+
border-color: transparent;
346+
box-shadow: none;
347+
348+
&:hover {
349+
.ibexa-icon {
350+
fill: $ibexa-color-dark-300;
351+
}
352+
}
353+
}
338354
}
339355

340356
&--small {

0 commit comments

Comments
 (0)