Skip to content

Commit

Permalink
[Graph] Fix style for disabled fields when focused (elastic#96780)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
dej611 and kibanamachine committed Apr 19, 2021
1 parent a5f590d commit a84dcee
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 a84dcee

Please sign in to comment.