Skip to content

Commit ed8b2de

Browse files
Apply suggestions from code review
Co-authored-by: Ruth Cheesley <[email protected]>
1 parent d8f2952 commit ed8b2de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/design/disabling_elements.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Disabling interface elements
22
=======================================
33

4-
Disabling interface elements is a crucial aspect of user interface design, providing visual feedback and preventing user interaction when certain actions are not allowed.
4+
The state of interface elements is a crucial aspect of user interface design, providing visual feedback and preventing interaction when certain actions aren't allowed.
55

66
Disabling tabs
77
--------------
@@ -25,7 +25,7 @@ This CSS accomplishes the following:
2525
* Sets the cursor to ``not-allowed`` for disabled tabs, indicating that interaction is prohibited.
2626
* Changes the text color to a predefined disabled state color.
2727
* Modifies the background color of the tab to visually represent its disabled state.
28-
* Disables click events on the tab using ``pointer-events: none``.
28+
* Prevent click events on the tab using ``pointer-events: none``.
2929

3030
To dynamically disable tabs, we use JavaScript to add or remove the ``disabled`` class. Here's an example function:
3131

@@ -43,7 +43,7 @@ To dynamically disable tabs, we use JavaScript to add or remove the ``disabled``
4343
4444
This function:
4545

46-
* Checks the state of a checkbox (``#role_isAdmin_0``).
46+
* Checks the state of a checkbox - ``#role_isAdmin_0``.
4747
* Adds or removes the ``disabled`` class from the permissions tab based on the checkbox state.
4848

4949
To implement disabled states for tabs:

0 commit comments

Comments
 (0)