Skip to content

Make the color scheme chooser active theme check work.#3062

Open
drgrice1 wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:bugfix/color-scheme-chooser-check
Open

Make the color scheme chooser active theme check work.#3062
drgrice1 wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:bugfix/color-scheme-chooser-check

Conversation

@drgrice1

Copy link
Copy Markdown
Member

In the HTML markup for the color scheme chooser in templates/layouts/system.html.ep each of the theme buttons in the dropdown have a check icon. However, that check icon has d-none set, and it is always that way. So the checks are never shown. The javascript is supposed to make the check for the active theme visible, but does not. So make that happen.

This is a result of copying the HTML that Bootstrap actually uses for the theme chooser on their documentation page, and using the JavScript they demonstrate on their documentation page, but their implementation and their demonstration do not quite match.

In the HTML markup for the color scheme chooser in
`templates/layouts/system.html.ep` each of the theme buttons in the
dropdown have a check icon.  However, that check icon has `d-none` set,
and it is always that way.  So the checks are never shown. The
javascript is supposed to make the check for the active theme visible,
but does not. So make that happen.

This is a result of copying the HTML that Bootstrap actually uses for
the theme chooser on their documentation page, and using the JavScript
they demonstrate on their documentation page, but their implementation
and their demonstration do not quite match.
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.

2 participants