Repository navigation
fix(ui): generate the create buttons' utilities with the ext prefix - #27
Merged
Merged
Conversation
The two create buttons relied on unprefixed Tailwind utilities (shadow-md, duration-150, ease-out, hover:brightness-110, w-full, bg-gradient-to-r and the role gradient stops), which only worked because the host ships them compiled. If the host changed its Tailwind build they would silently stop applying. The extension build already emits the same utilities under the SDK's ext prefix, so use those and stop depending on the host. Computed styles are unchanged in light and dark mode. Closes #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #26.
The two create buttons (New category and New note) relied on unprefixed Tailwind utilities (
shadow-md,duration-150,ease-out,hover:brightness-110,w-full,bg-gradient-to-rand the role gradient stops). Those only worked because the host ships them compiled; if the host changed its Tailwind build they would silently stop applying.The extension build already emits the same utilities under the SDK
ext:prefix (verified: the bundle contains the corresponding.ext\:...rules), so use those and stop depending on the host. The rest of the stylesheet is plain CSS with the host role tokens and does not depend on the host.Verification:
npm run buildandvue-tsc --noEmitpass