-
-
Notifications
You must be signed in to change notification settings - Fork 151
add some classes and ids for components #2344
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
feat(BDropdown): id for split and menu elements feat(BFromGroup): add class b-form-group feat(BImg): add class b-img
|
commit: |
I added b-prefix since b-avatar etc was using it. Our own utility classes have bv-prefix. For completeness sake, should we add the b-component-name class to every other component also? or rename our component classes without b-prefix to be inline with bootstraps names? |
Thinking this through a bit: Bootstrap itself doesn't use a namespace prefix, so the pattern that many of our components have by the nature of implementing Bootstrap is that we have a class with a bare name that is basically the name of their 'component' on the main element. Just looking at a few, BAccordion = accordion, BAlert = alert, BBadge = badge, BBreadcrumb = breadcrumb, Button = btn, etc. Renaming our components to be in line with Bootstrap names—Are you suggesting that we rename Button to Btn? Are there other examples? I'm not sure I have a strong opinion on that. |
BBtn can be an additional export. Similar to Binput
Prefer using this prefix for custom classes
I'd agree that useless classes like these should be avoided, even ones that are currently included now should probably be removed if they don't do anything |
Okay - I think we have a path forward here. The plan is:
I would be happy to handle 3. Since the existing PR conforms to the above guidelines, I'd recommend that we let it through and I can catch the remaining exceptions in my parity pass (and since these are additive, getting every single one isn't urgent, while the ones that @xvaara covered here are cases that have come up - in at least one case, several times). |
* upstream/main: (49 commits) fix: rename ref to avoid Vue warnings (Fix bootstrap-vue-next#2337) (bootstrap-vue-next#2353) Fix show/hide events and emits (bootstrap-vue-next#1821) add some classes and ids for components (bootstrap-vue-next#2344) feat: add __usedComponents __usedDirectives property to the BootstrapVueNextResolver function (bootstrap-vue-next#2351) doc(BNavbar): Parity pass (bootstrap-vue-next#2347) docs: fix lint error (bootstrap-vue-next#2349) fix(BNavbarToggle): toggle default slot doesnt have a scoped argument 'expanded' fixes bootstrap-vue-next#2348 feat!: remove html props -- use equivalent slots fixes bootstrap-vue-next#1930 (bootstrap-vue-next#2311) chore: release main (bootstrap-vue-next#2343) fix(BDropdown): fix infinite loop on keyboard navigation (bootstrap-vue-next#2342) chore: release main (bootstrap-vue-next#2336) feat(BPagination): add keyboard shortcuts fixes bootstrap-vue-next#2153 doc(BNav): Parity pass (bootstrap-vue-next#2332) chore: release main (bootstrap-vue-next#2327) fix(BTable): dynamic slots not rendering fixes bootstrap-vue-next#2328 (bootstrap-vue-next#2329) feat(BTable): make it possible to style custom footers (bootstrap-vue-next#2314) chore: release main (bootstrap-vue-next#2323) fix(BFormGroup): fix layout problem when label-for is not used (bootstrap-vue-next#2321) chore: release main (bootstrap-vue-next#2320) feat(BPagination): add small screen support (bootstrap-vue-next#2308) ...
feat(BDropdown): id for split and menu elements
feat(BFromGroup): add class b-form-group
feat(BImg): add class b-img
Describe the PR
@dwgray @VividLemon think of any other elements that would require a class or id for sub elements?
Small replication
A small replication or video walkthrough can help demonstrate the changes made. This is optional, but can help observe the intended changes. A mentioned issue that contains a replication also works.
PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...)
feat(...)
fix(...)
docs(...)
The PR fulfills these requirements:
CHANGELOG
is 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