- Issue created by @drakythe
- πΊπΈUnited States tim bozeman
I'd love to copy what the Claro theme is doing to vertical tabs. That part of the theme code has a link to #3056089: Provide a new render element for accordion β π€ - πΊπΈUnited States drakythe
I like that solution! It keeps the vertical tab concept and just makes it workable.
As a quick proof of concept I switched my ddev site to use Claro as the default theme and it _mostly_ works, though there is an issue in that it appears Claro's CSS/Layout is so responsive the standard fields and revision long text field occupy about 25px of the sidebar.
- πΊπΈUnited States drakythe
Good news and bad news.
Good news! I think I found the code responsible for this in Claro.
Bad news, yeah, its code and styling. I am not the caliber of front end dev to untangle if all of this would be necessary to recreate or if it could be paired down.
PHP Code: https://git.drupalcode.org/project/drupal/-/blob/11.1.x/core/themes/clar... which is called here: https://git.drupalcode.org/project/drupal/-/blob/11.1.x/core/themes/clar... (hook_element_info_alter() api documentation indicates this hook may be called from modules.)
CSS code resides in a dedicated css component file (the PostCSS file https://git.drupalcode.org/project/drupal/-/blob/11.1.x/core/themes/clar... which is compiled down into a standard css file)
And a small js file using jQuery https://git.drupalcode.org/project/drupal/-/blob/11.1.x/core/themes/clar...