- Issue created by @sime
- Status changed to Closed: works as designed
about 2 months ago 10:09pm 14 July 2024 - 🇦🇺Australia alex.skrypnyk Melbourne
For any sub-component of the `Basic content` UIKit component, there is a CSS override that forces parent component's theme on the descendant components - buttons, heading, paragraphs etc. etc.
Please try applying a button style and switching the `Content` component to Dark to see that these styles apply automatically.
The only reason for the Drupal's WYSIWYG to have `ct-theme-light` in the button (and other components) styles is to provide an editor's styles (CSS included in the WYSIWYG editor) in the admin theme, like Claro, which is presumably uses "light" theme.
So, there is nothing you need to do - the `ct-inherit` class is not needed as it is already implemented and automatically handled.