N°6132 - Introduce API to disable tabs dynamically (#470)

* N°6132 - disable tabs dynamically

* Apply suggestions from code review

JS cleanup after review

Co-authored-by: Molkobain <lajarige.guillaume@free.fr>

* Disable tabs by ID instead of index
Disabled tabs are visible (with a 'not-allowed' cursor)  instead of being hidden from the extra tabs menu.

* Typo!

* Update code to match conventions

* N°6132 - Fix show/hide of disabled tabs as it collided with internal methods

---------

Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
This commit is contained in:
Denis
2023-04-06 12:12:42 +02:00
committed by GitHub
parent 2907efde4b
commit d28b099401
4 changed files with 90 additions and 13 deletions

View File

@@ -38,6 +38,10 @@ $ibo-is-code--padding: 1.25rem 1.5rem !default;
cursor: help;
}
.ibo-is-disabled {
cursor: not-allowed !important; /* Note: !important is necessary as it needs to overload any standard rules */
}
/* Class to display a hint on elements that have a tooltip for further description */
.ibo-has-description {
&::after {