Skip to content

Use custom btn-ww-info in UI.#2971

Open
somiaj wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
somiaj:add-www-info-btn
Open

Use custom btn-ww-info in UI.#2971
somiaj wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
somiaj:add-www-info-btn

Conversation

@somiaj
Copy link
Copy Markdown
Contributor

@somiaj somiaj commented May 11, 2026

Since btn-info is used for PG feedback buttons, modifying this button changes the colors seen in the PG feedback button. This configures and uses a custom btn-ww-info class instead of btn-info to allow theming and to not change the color of the PG feedback buttons.

Due to the two new variables $ww-info and $ww-info-text this will break the building of any custom theme. I have opted to do not put in default values for this so anyone who has created a custom theme will see the breakage and realize they need to update their _theme-colors.css override.

Since btn-info is used for PG feedback buttons, modifying this button
changes the colors seen in the PG feedback button. This configures and
uses a custom btn-ww-info class instead of btn-info to allow theming
and to not change the color of the PG feedback buttons.

Due to the two new variables $ww-info and $ww-info-text this will
break the building of any custom theme. I have opted to do not put
in default values for this so anyone who has created a custom theme
will see the breakage and realize they need to update their
_theme-colors.css override.
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.

1 participant