Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables should be affixed with !default in case custom overrides. #63

Open
titanism opened this issue Feb 10, 2023 · 5 comments
Open

Comments

@titanism
Copy link

e.g. if a user wants to use a custom $blue value in dark mode

https://github.com/ForEvolve/bootstrap-dark/blob/master/scss/_dark-variables.scss

@Carl-Hugo
Copy link
Member

I can't remember why I did not add the !default suffix; maybe it does not work as one would expect because Bootstrap already defines that suffix, and the dark variables are already overriding them... To be validated.

That said, feel free to validate if it works, and if so, let me know and/or open a PR.

TBH, I'm pretty busy with work atm, and I don't think I'll have the opportunity to review this for a while; your help would be most appreciated.

@titanism
Copy link
Author

Couldn't we just move @import 'dark-variables' to before @import 'node_modules/bootstrap/scss/variables'; and affix all the vars with !default?

@titanism
Copy link
Author

Will open a PR and test it out now if it works

titanism added a commit to titanism/bootstrap-dark that referenced this issue Feb 12, 2023
@titanism
Copy link
Author

Tested and seems to work OK. See #64.

Can you merge and release a new major or minor version to npm? This is breaking so at the minimum do a minor version release, if not a major for safety.

@titanism
Copy link
Author

Just an update - that PR is broken and should not be merged. We'll try to find time to dive in that again in the near future.

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

No branches or pull requests

2 participants