-
Notifications
You must be signed in to change notification settings - Fork 29
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
New: Separate .is-locked and .is-disabled btn state classes #202
New: Separate .is-locked and .is-disabled btn state classes #202
Conversation
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.
👀
After discussion, instead of separating state classes, locking state to be added to disabled buttons. This removes the dependency from Vanilla PR, add drawer item locked state. PR to be updated to reflect. |
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.
👍
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.
👍
🎉 This PR is included in version 7.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Relates to Core issue to allow for locked and inactive disabled buttons to be visually different.
Depending on the button context, the appropriate
.is-locked
or.is-disabled
classes should be used..is-locked
- applies to buttons that are temporarily disabled due to step locked content..is-disabled
- applies to buttons with functionality not available. Styles are inherited from Vanilla less/core/drawerItem.less.#### Dependencies
.is-locked
styles require Vanilla PR, add drawer item locked state.Update: Dependency removed in 6dbfcad.
After discussion, instead of separating state classes,
.is-locked
has been added in addition to.is-disabled
. This removes the dependency from Vanilla PR, add drawer item locked state as earlier versions of Vanilla will still inherit.is-disabled
styles.Testing PR example
In your course, navigate to Adapt Assessment. Open PLP drawer and inspect. Trickled items,
.pagelevelprogress__item-btn
should have the classes.is-disabled .is-locked
.In the same course, set a component to
"_isVisible": false,
. Navigate to this component, open PLP drawer and inspect. The hidden component,.pagelevelprogress__item-btn
should have the class.is-disabled
.