fix hover style for char count field #7620
3 changed files with 37 additions and 5 deletions
|
@ -261,7 +261,7 @@ export class FormField extends React.PureComponent<Props> {
|
|||
{!noEmojis && openEmoteMenu && (
|
||||
<Button
|
||||
type="alt"
|
||||
className="button--file-action"
|
||||
className="button--comment-icons"
|
||||
title="Emotes"
|
||||
onClick={openEmoteMenu}
|
||||
icon={ICONS.EMOJI}
|
||||
|
|
|
@ -378,15 +378,47 @@ a.button--alt {
|
|||
}
|
||||
|
||||
&:hover {
|
||||
.icon {
|
||||
stroke: var(--color-link);
|
||||
}
|
||||
.button__label {
|
||||
color: var(--color-link);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.button--comment-icons {
|
||||
@extend .button--alt;
|
||||
color: var(--color-text);
|
||||
background-color: transparent;
|
||||
margin-right: var(--spacing-m);
|
||||
padding: 0 var(--spacing-xxs);
|
||||
height: initial;
|
||||
padding: 5px;
|
||||
|
||||
|
||||
@media (max-width: $breakpoint-small) {
|
||||
There's a duplicate padding: line here. Also, whenever possible, we're trying to use vars for spacing, as above. Does one of those work? There's a duplicate padding: line here. Also, whenever possible, we're trying to use vars for spacing, as above. Does one of those work?
|
||||
padding: 0 0;
|
||||
}
|
||||
|
||||
.icon {
|
||||
&:not(.color-override) {
|
||||
stroke: var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
.button__label {
|
||||
min-width: 10px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.button__label {
|
||||
color: var(--color-link);
|
||||
}
|
||||
background-color: var(--color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
[aria-expanded='true'].button--file-action {
|
||||
background-color: var(--color-header-background);
|
||||
.icon {
|
||||
|
|
|
@ -547,7 +547,7 @@ fieldset-group {
|
|||
text-align: right;
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
vertical-align: super;
|
||||
padding-right: 0px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue
I know it's not super D.R.Y. but I would duplicate the button--file-action class contents here.
Then we can get rid of commented out lines.