Skip to content

chore: remove empty theme-extensions and theme-forms files [Draft]#8564

Draft
joakbjerk wants to merge 5 commits into
mainfrom
chore/remove-theme-files-from-theme-factory
Draft

chore: remove empty theme-extensions and theme-forms files [Draft]#8564
joakbjerk wants to merge 5 commits into
mainfrom
chore/remove-theme-files-from-theme-factory

Conversation

@joakbjerk

@joakbjerk joakbjerk commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Testing out if its easily done, and breaking to much 😅

@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown

Branch Preview URL (stable):
https://chore-remove-theme-files-fro.eufemia-e25.pages.dev

https://chore-remove-theme-files-fro.eufemia-e25.pages.dev

Deployment URL (unique):
https://673688bd.eufemia-e25.pages.dev

https://673688bd.eufemia-e25.pages.dev

@pkg-pr-new

pkg-pr-new Bot commented Jun 12, 2026

Copy link
Copy Markdown

commit: 8619f45

Comment on lines -28 to -35
### Import extensions styles

The styles for extensions are not a part of the default styles, so you have to import them explicitly.

```js
import '@dnb/eufemia/style/themes/ui/extensions'
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's discuss if this is "safe" to remove now or if we should wait until v12 🤔
Could this PR be breaking for any of our consumers who do import '@dnb/eufemia/style/themes/ui/extensions'? If so, I guess we could still keep the "export" (even though it will not to anything) with a TODO comment for remember to removing it in v12.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that might be a bit breaking 😄

Comment on lines -78 to -82
expect(global.components[0]).toContain('@charset "UTF-8";')
expect(global.components[0]).not.toContain(';--')
expect(global.components[0]).not.toContain('}:root{--')

expect(global.components[1]).toContain('@charset "UTF-8";')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, looks a bit suspicious 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was to circumvent importing empty files, since there weren't any UTF-8 characters in there when empty, but probably not the best way to solve this no 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants