fix hover style for char count field (#7620)

* fix hover style for char count field

* vertically align character counter and emoji button

* add new comment icon class

* Revert "add new comment icon class"

This reverts commit 8a163e0f02.

* created and corrected the icon class

* button--comment-icons-active removed
This commit is contained in:
Byron Eric Perez 2022-07-07 17:55:31 -03:00 committed by GitHub
parent f065218ff4
commit 9825bccf4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 5 deletions

View file

@ -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}

View file

@ -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) {
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 {

View file

@ -547,7 +547,7 @@ fieldset-group {
text-align: right;
span {
display: inline-block;
vertical-align: super;
padding-right: 0px;
}
}