-
-
Notifications
You must be signed in to change notification settings - Fork 174
doc(variant): interaction between variant, bg-variant & text-variant #2200
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
Conversation
|
|
commit: |
|
On the other hand, using One would never have variant and textVariant, so naturally even though it's "breaking", it wouldn't be 'breaking' Which could naturally alleviate the issue as first, the two props are more specific, and second there are no non "undefined/null" props of those |
I agree that something like this could work better. I started to go down that path, and got tied up a bit because no matter what you do, we'll have some non-intuitive interactions. Is what you're proposing that we set If that is what you're thinking, then the only slightly odd thing is that if someone sets all three I'll set this to draft and try going down that path (hopefully tomorrow)... |
|
Hypothetically one could remove the null check all together and just see what bootstrap does |
Playing with BS5, |
b610108 to
da58bca
Compare
da58bca to
88eaf64
Compare
* upstream/main: doc(variant): interaction between variant, bg-variant & text-variant (bootstrap-vue-next#2200) chore: release main (bootstrap-vue-next#2206) fix(ConditionalWrapper): don't inherit attrs (bootstrap-vue-next#2205) docs: fix paths (bootstrap-vue-next#2204) chore: release main (bootstrap-vue-next#2196) fix: change renderorskip to wrapper, add our own teleport logic. (bootstrap-vue-next#2162) fix(BTable): Type check failed for prop tbodyTrClass fixes bootstrap-vue-next#2197 (bootstrap-vue-next#2198) fix(resolver): resolver path for BCloseButton feat(BCarousel): add noAnimation prop (bootstrap-vue-next#2194) docs: Migration Guide refactor (bootstrap-vue-next#2186) chore: release main (bootstrap-vue-next#2191) fix(BNavItem): pass prop exactActiveClass to router component (bootstrap-vue-next#2188) chore: release main (bootstrap-vue-next#2190) fix: improper import path (bootstrap-vue-next#2189)
Describe the PR
This PR addresses #2122 among other things. Since the bootstrap 5 behavior makes
bg-variantandtext-variantoverridevariant(it's actuallybg-*andtext-*classes overridingtext-bg-*classes) - the most straightforward was to solve this problem is to just all of the variant props set their respective classes and let bootstrap sort it out.Small replication
See #2122
PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...)feat(...)fix(...)docs(...)The PR fulfills these requirements:
CHANGELOGis generated from these messages, and determines the next version type. Pull requests that do not follow conventional commits or do not have an override will be denied