You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code functionality
As per code, if a row is selectable and the feature needs to be disabled, only the button is disabled, the cell text is readable.
[Note: The code attached here is from C4IP because Carbon data table doesn't have a "disable" prop yet.]
Usage guidance
In our docs, when we show disabled state we show both the button and the text disabled (entire cell is disabled)
Thoughts
Both use-cases can be valid in their own ways, however disabling cell text makes it completely inaccessible from a color contrast perspective.
If the selectable checkbox is disabled and cell text has read-only token colours then it solves both purposes, inability to interact with the checkbox but still readable and accessible.
Expectations
Add the disabled state for row / cell in the data table component.
Update docs to reflect this (just the button/s should be disabled, not the text) (if a disabled styling is required for text consider using read-only token color)
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.
If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.
Description
Code functionality
As per code, if a row is selectable and the feature needs to be disabled, only the button is disabled, the cell text is readable.
[Note: The code attached here is from C4IP because Carbon data table doesn't have a "disable" prop yet.]
Usage guidance
In our docs, when we show disabled state we show both the button and the text disabled (entire cell is disabled)
Thoughts
read-only
token colours then it solves both purposes, inability to interact with the checkbox but still readable and accessible.Expectations
Code of Conduct
The text was updated successfully, but these errors were encountered: