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
Depending on the button context, the appropriate .is-locked or .is-disabled classes should be used. This doesn't have any impact on the functionality as all disabled buttons have the attribute aria-disabled. .is-locked or .is-disabled should only be used to apply styles.
Expected behaviour
.is-locked - applies to buttons that are temporarily disabled due to step locked content.
Instances include: Boxmenu item button, Trickle button and PLP.
.is-disabled - applies to buttons with functionality not available.
Instances include: Narrative start/end controls, Submit button when no answers have been selected, Feedback button when question hasn't been submitted.
Subject of the enhancement
Depending on the button context, the appropriate
.is-locked
or.is-disabled
classes should be used. This doesn't have any impact on the functionality as all disabled buttons have the attributearia-disabled
..is-locked
or.is-disabled
should only be used to apply styles.Expected behaviour
.is-locked
- applies to buttons that are temporarily disabled due to step locked content.Instances include: Boxmenu item button, Trickle button and PLP.
.is-disabled
- applies to buttons with functionality not available.Instances include: Narrative start/end controls, Submit button when no answers have been selected, Feedback button when question hasn't been submitted.
Plugins with locked states
Boxmenu
Already has
.is-locked
class. Nothing to action.pageLevelProgressItem
Replace
.is-disabled
with.is-locked
. This would be consistent with the lockedaria-label
..is-locked
style would need adding to Vanilla.Trickle
Issue already raised adaptlearning/adapt-contrib-trickle#208. Locked styling would also be consistent with the
aria-label
.There are no specific Trickle button styles currently. Colours inherit from Vanilla
.btn-text
instead which already includes.is-locked
.The text was updated successfully, but these errors were encountered: