Skip to content

Commit

Permalink
[Graph] Fix style for disabled fields when focused (#96780) (#97458)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Marco Liberati <[email protected]>
  • Loading branch information
kibanamachine and dej611 authored Apr 19, 2021
1 parent 0f5e65f commit d40c90a
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
.gphFieldEditor__badge {
@include gphFieldBadgeSize;
}

.gphFieldEditor__badge--disabled,
.gphFieldEditor__badge--disabled:focus {
opacity: .7;
text-decoration: line-through;
&.gphFieldEditor__badge--disabled,
&.gphFieldEditor__badge--disabled:hover,
&.gphFieldEditor__badge--disabled:focus,
&.gphFieldEditor__badge--disabled:not(:disabled):hover
&.gphFieldEditor__badge--disabled:not(:disabled):focus {
opacity: .7;
text-decoration: line-through;
}

// Chrome fix for focus: duplicate or Safari will ignore completely the disabled rule
&.gphFieldEditor__badge--disabled:focus:not(:focus-visible),
&.gphFieldEditor__badge--disabled:hover:not(:focus-visible) {
opacity: .7;
text-decoration: line-through;
}
}

.gphFieldEditor__badgeIcon {
Expand Down

0 comments on commit d40c90a

Please sign in to comment.