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

Make submit visible but disabled before input is given, fixes #677 #2940

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

killuaDev
Copy link

The main change I've made here is adding a 'disabled' styling to the DeprecatedButton component, which desaturates it and lowers the opacity, visually indicating that it's disabled.

Then within the ChallengePanel component I've made it so that the submit button appears disabled if no input has been given, appear enabled if input has been given, and disappear when the 'continue' button is available.
My reason for the latter part was that it allows users to press submit and then click again in the same place to continue, which is the natural next interaction.
image
image
image

I updated the feature files to reflect the new expected behavior.

(This is my first PR for LL, I really like the project, let me know if there's anything I should change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant