Merge pull request 'ui/toolbarButton: fix selected state' (#4533) from ui-progress into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4533
This commit is contained in:
@@ -13,7 +13,9 @@ export interface ToolbarButtonProps
|
|||||||
export const ToolbarButton = (props: ToolbarButtonProps) => {
|
export const ToolbarButton = (props: ToolbarButtonProps) => {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
class={cx(styles.toolbar_button, { selected: props.selected })}
|
class={cx(styles.toolbar_button, {
|
||||||
|
[styles["selected"]]: props.selected,
|
||||||
|
})}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<Icon icon={props.icon} inverted={!props.selected} />
|
<Icon icon={props.icon} inverted={!props.selected} />
|
||||||
|
|||||||
Reference in New Issue
Block a user