Skip to content

fix: restore bootstrap overrides#745

Merged
rwaskiewicz merged 2 commits into
mainfrom
rw/import-bootstrap
Jun 5, 2026
Merged

fix: restore bootstrap overrides#745
rwaskiewicz merged 2 commits into
mainfrom
rw/import-bootstrap

Conversation

@rwaskiewicz

@rwaskiewicz rwaskiewicz commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Asana task: N/A

Description
In ad3b11b, we moved from @import to @use statements for most
stylesheets. That change introduced a regression which led to certain
default bootstrap styles to be used instead of the custom primary theme
for screenplay. Migrating a single @import of Bootstrap to a @use
caused the theme map we define in Screenplay.scss to not be taken into
account when bs-btn-* styles are applied. As a result, the default
Bootstrap Blue was used in a handful of UI components.

This commit also includes a where the custom color of PA message
"active" toggle was not being properly applied. This was caused by the
previously global style not being applied to the toggle as a part of the
migration.


Before - Action Buttons
Screenshot 2026-06-05 at 10 14 02

After - Action Buttons

Screenshot 2026-06-04 at 14 51 23

Before - Active Toggle
Screenshot 2026-06-05 at 10 14 31

After - Active Toggle
Screenshot 2026-06-05 at 10 14 48

In ad3b11b, we moved from `@import` to `@use` statements for most
stylesheets. That change introduced a regression which led to certain
default bootstrap styles to be used instead of the custom primary theme
for screenplay. Migrating a single `@import` of Bootstrap to a `@use`
caused the theme map we define in `Screenplay.scss` to not be taken into
account when `bs-btn-*` styles are applied. As a result, the default
Bootstrap Blue was used in a handful of UI components.

This commit also includes a where the custom color of PA message
"active" toggle was not being properly applied. This was caused by the
previously global style not being applied to the toggle as a part of the
migration.
@rwaskiewicz rwaskiewicz force-pushed the rw/import-bootstrap branch from 6ee8c2b to 79a4249 Compare June 5, 2026 14:18
Comment thread assets/css/dashboard/pa-messages-page.scss Outdated
@rwaskiewicz rwaskiewicz marked this pull request as ready for review June 5, 2026 14:25
@rwaskiewicz rwaskiewicz requested a review from a team as a code owner June 5, 2026 14:25
Comment thread assets/css/dashboard/pa-messages-page.scss Outdated
During the review of this commit, we realized that there was some
duplication of the word 'form' when using
`variables-screenplay-forms.scss`. As a part of refactoring the names,
it was determined that we want to keep the variable names themselves, as
they match Bootstrap variables names in order to override certain
defaults.

However, we can remove the file entirely, as the values in this file are
represented in `variables.scss`. Move the contents of
`variables-screenplay-forms.scss` to the theme map to override Bootstrap
defaults, and directly replace its usages with their `variables.scss`
compliements
@rwaskiewicz rwaskiewicz merged commit 1726b89 into main Jun 5, 2026
2 checks passed
@rwaskiewicz rwaskiewicz deleted the rw/import-bootstrap branch June 5, 2026 18:58
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