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

Active states on numbered buttons #1

Open
dustinusey opened this issue Mar 14, 2024 · 0 comments
Open

Active states on numbered buttons #1

dustinusey opened this issue Mar 14, 2024 · 0 comments

Comments

@dustinusey
Copy link
Collaborator

Step Two in the UI shows three buttons: "3", "5", "10". By default, "3" is chosen. As a user makes a selection, the new number of questions is updated in the code and works as expected to create the right sized quiz, but there is no way to let the user know how many questions are going to be generated. All of the buttons remain gray regardless of which button is active.

screenshot

Update the code to add a bit of logic that gives some tailwind classes to the correct button that's active.

tailwind classes to add:
"bg-indigo-500 text-white"

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

No branches or pull requests

1 participant