Skip to content

Commit

Permalink
fix: added a span to add-reaction-button
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruminat committed Aug 12, 2024
1 parent e3bd90f commit 29f706c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Reactions/Reactions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$block: '.#{variables.$ns}reactions';

#{$block} {
&__reaction-button_add-button {
&__add-reaction-button-content {
color: var(--g-color-text-secondary);
}

Expand Down
10 changes: 6 additions & 4 deletions src/components/Reactions/Reactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,16 @@ export function Reactions({
autoFocus
>
<Button
className={b('reaction-button', {size, 'add-button': true})}
className={b('reaction-button')}
size={size}
extraProps={{'aria-label': i18n('add-reaction')}}
view="flat"
>
<Button.Icon>
<Icon data={FaceSmile} size={buttonSizeToIconSize[size]} />
</Button.Icon>
<span className={b('add-reaction-button-content')}>
<Button.Icon>
<Icon data={FaceSmile} size={buttonSizeToIconSize[size]} />
</Button.Icon>
</span>
</Button>
</Popover>
)}
Expand Down

0 comments on commit 29f706c

Please sign in to comment.