Skip to content

Do not autoimport Tom Select default theme in app builds - #1337

Open
Jgrasp wants to merge 2 commits into
Sylius:2.3from
Jgrasp:fix/tom-select-default-css
Open

Jgrasp wants to merge 2 commits into
Sylius:2.3from
Jgrasp:fix/tom-select-default-css

Conversation

@Jgrasp

@Jgrasp Jgrasp commented Oct 13, 2026 •

Copy link
Copy Markdown
Q A
Branch? 2.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets follows Sylius/Sylius#18981
License MIT

assets/controllers.json autoimports tom-select.default.css. It is merged into the app.admin and app.shop builds and loaded after the Sylius admin styles, so .ts-dropdown { background: #fff } overrides the dark mode styles introduced in Sylius/Sylius#18981: autocomplete options are rendered in a light color on a white background.

Both AdminBundle and ShopBundle already disable this file and ship their own Tom Select styles (tom-select.bootstrap5.css). This PR aligns the app-level controllers.json with them.

Before

Admin, dark mode, product edit page, "Attributes" tab:

image

After

Same page after rebuilding the assets (yarn build):

image

@Jgrasp
Jgrasp requested review from a team as code owners October 13, 2026 09:41
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