Skip to content
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

Update: padlock replaces icon when button locked (#58) #59

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

kirsty-hames
Copy link
Contributor

Fixes #58

Update

As per adaptlearning/adapt-contrib-vanilla#446, locked disabled buttons should display a padlock icon.

Testing

Add example to the end of your page in component.json.

Enable course locking, e.g. "_lockType": "sequential" in course.json.

When page is incomplete, the 'Next' button is locked and padlock icon is displayed.
next_page_locked

When page is complete, the 'Next' button is active and the default chevron icon is displayed.
next_page_unlocked

@kirsty-hames kirsty-hames self-assigned this Mar 18, 2024
@kirsty-hames kirsty-hames added the enhancement New feature or request label Mar 18, 2024
Copy link
Contributor

@swashbuck swashbuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kirsty-hames kirsty-hames merged commit b74bca4 into master Mar 19, 2024
1 check passed
@kirsty-hames kirsty-hames deleted the issue/58 branch March 19, 2024 09:39
github-actions bot pushed a commit that referenced this pull request Mar 19, 2024
# [3.1.0](v3.0.1...v3.1.0) (2024-03-19)

### Update

* padlock replaces icon when button locked (#58) #59 ([b74bca4](b74bca4)), closes [#58](#58) [#59](#59)
Copy link

🎉 This PR is included in version 3.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display padlock when button locked
2 participants