plate icon indicating copy to clipboard operation
plate copied to clipboard

"active" styles don't propagate on ToolbarButton components

Open alonzuman opened this issue 3 years ago • 0 comments

When passing styles prop (active, root) to the ToolbarButton component (whether its Block, Mark and all the rest) the "active" styles don't work.

Steps

  1. Add a <ToolbarButton /> component to the toolbar
  2. Add styles={{ active: { color: 'red' } }} prop
  3. ... not showing up

image

Sandbox Link to sandbox

Expectation Was expecting the icon color to be red if the mark / block type are active

Environment

  • slate:
  • slate-react:
  • browser: chrome

alonzuman avatar Jun 19 '22 15:06 alonzuman