Skip to content

Commit

Permalink
Assign invertOnPress class for Icons in the Editor's Toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
verbey committed Dec 10, 2024
1 parent 89172bb commit 02e84a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/editor/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export function MarkButton({ format, icon, tooltip }: MarkButtonProps) {
<TooltipProvider tooltip={tooltip} delay={500}>
{(triggerRef) => (
<IconButton
className={css.invertOnPress}
ref={triggerRef}
variant="SurfaceVariant"
onClick={handleClick}
Expand Down Expand Up @@ -104,6 +105,7 @@ export function BlockButton({ format, icon, tooltip }: BlockButtonProps) {
<TooltipProvider tooltip={tooltip} delay={500}>
{(triggerRef) => (
<IconButton
className={css.invertOnPress}
ref={triggerRef}
variant="SurfaceVariant"
onClick={handleClick}
Expand Down Expand Up @@ -342,6 +344,7 @@ export function Toolbar() {
>
{(triggerRef) => (
<IconButton
className={css.invertOnPress}
ref={triggerRef}
variant="SurfaceVariant"
onClick={() => setIsMarkdown(!isMarkdown)}
Expand Down

0 comments on commit 02e84a8

Please sign in to comment.