-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
**Fix:** it was not possible to disable Tree component inside CardSection #953
Conversation
@@ -43,10 +43,11 @@ export type OverlayType = "noOverlay" | "disabled" | DragAndDropFeedback | |||
* The flex rule only kicks in when the parent is flex-positioned in case | |||
* sections are stacked horizontally. | |||
*/ | |||
const Container = styled("div")` | |||
const Container = styled("div")<{ disabled?: boolean }>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we need to add aria-disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but not here.
@@ -43,10 +43,11 @@ export type OverlayType = "noOverlay" | "disabled" | DragAndDropFeedback | |||
* The flex rule only kicks in when the parent is flex-positioned in case | |||
* sections are stacked horizontally. | |||
*/ | |||
const Container = styled("div")` | |||
const Container = styled("div")<{ disabled?: boolean }>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but not here.
@@ -161,7 +162,7 @@ const CardSection: React.SFC<CardSectionProps> = ({ | |||
forceToggleHoverStyles, | |||
...props | |||
}) => ( | |||
<Container {...props}> | |||
<Container {...props} disabled={disabled}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Container {...props} disabled={disabled}> | |
<Container {...props} disabled={disabled} aria-disabled={disabled}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No regression
Summary
Related issue
N/A
To be tested
Me
localhost:6060
Tester 1
Tester 2