Problem/Motivation
Menu items in OpenAPI Redoc interface have no label with Gin theme enabled.
This issue happens with "Horizontal, Modern Toolbar" and "Legacy, Classic Drupal Toolbar" but NOT "Sidebar, Vertical Toolbar (Default)".
As .menu-item-title selector is used unscoped in horizontal_toolbar.css it causes elements with the same class within the page body to be set to display: none !important. Redoc happens to use the same class names.
Steps to reproduce
* Set Gin as admin theme
* Set Toolbar to "Horizontal, Modern Toolbar"
* Install OpenAPI Redoc modules:
composer require 'drupal/openapi_ui_redoc:^1.0@RC' 'drupal/openapi_jsonapi:^3.0' 'drupal/openapi:^2.0'
* Enable OpenAPI Redoc modules (and core JSON:API) :
drush en openapi_ui_redoc openapi_jsonapi openapi jsonapi
* Visit /admin/config/services/openapi/redoc/jsonapi
Items in Redoc left menu have no label displaying

Proposed resolution
Add scope to .menu-item-title selector in horizontal_toolbar.css. E.g use .toolbar .menu-item-title instead.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3274506-with-updated-selector.png | 377.15 KB | kmbremner |
| #3 | 3274506-with-curent-selector.png | 306.82 KB | kmbremner |
Issue fork gin-3274506
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kmbremnerAdded steps to reproduce (and screenshots)
Comment #3
kmbremnerComment #4
kmbremnertidied up shell commands in issue description
Comment #8
saschaeggiThanks @kmbremner!