JavaScript for WordPress Forums Gutenberg Development Any way to add a class to a custom DropdownMenu control buttons?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #49222
    winefolly
    Participant

    Hi Zac,

    I’m trying to tweak the styling of the Dropdown Menu control buttons, but I can’t seem to find any way to add a class to the buttons wrapper or the buttons themselves. I checked the docs and the DropdownMenu control doesn’t seem to have any option to set a class and wrapping the whole control block with a div only ends up wrapping the top control button and no way to target the dropdown buttons with css (at least not without impacting other blocks).

    Any ideas?

    Cheers,
    Chris

    #49233
    Zac Gordon
    Keymaster

    Similar to your other question on extending existing blocks I’m not sure it’s possible yet. Please ask in the WP slack #core-editor channel and let us know what you find!!!

    #49252
    winefolly
    Participant

    Will do 🙂 Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.