8000 Revert "fix(BButton): Consume useColorVariantClasses (#2640)" by dwgray · Pull Request #2654 · bootstrap-vue-next/bootstrap-vue-next · GitHub
[go: up one dir, main page]

Skip to content

Revert "fix(BButton): Consume useColorVariantClasses (#2640)" #2654

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

Merged

Conversation

dwgray
Copy link
Member
@dwgray dwgray commented Apr 9, 2025

This reverts commit 379fd9a.

Describe the PR

As noted in #2653, the change in #2640 caused more issues than it fixed. I believe that it is because useColorVariant uses the variant property to set text-bg-* which overrides the btn-variant-* class in the .css.

I'd like to revert this change outright + remove the confusing docs.

Longer term we could consider implementing bg-variant and text-variant on BButton and possibly other components that support them, but for the short term a perfectly viable solution is to treat these as utility classes and have the user set them manually. @hackel - can you confirm that this would work-around the issue that you filed #2637 for?

Small replication

See #2653

PR checklist

What kind of change does this PR introduce? (check at least one)

  • Bugfix 🐛 - fix(...)
  • Feature - feat(...)
  • ARIA accessibility - fix(...)
  • Documentation update - docs(...)
  • Other (please describe)

The PR fulfills these requirements:

  • Pull request title and all commits follow the Conventional Commits convention or has an override in this pull request body This is very important, as the 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

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
pkg-pr-new bot commented Apr 9, 2025

bsvn-vite-ts

npm i https://pkg.pr.new/bootstrap-vue-next/bootstrap-vue-next@2654
npm i https://pkg.pr.new/bootstrap-vue-next/bootstrap-vue-next/@bootstrap-vue-next/nuxt@2654

commit: 1acc3d1

@VividLemon VividLemon merged commit 43d689d into bootstrap-vue-next:main Apr 9, 2025
4 checks passed
@hackel
Copy link
Contributor
hackel commented Apr 9, 2025

@dwgray Yes, that works for me, I think that's what I am already doing. Thanks!

@dwgray
Copy link
Member Author
dwgray commented Apr 10, 2025

@dwgray Yes, that works for me, I think that's what I am already doing. Thanks!

Okay, I've closed #2637 based on this, if you think we should keep it open to track potentially adding properties to support this please go ahead and reopen with a comment to that effect.

@dwgray dwgray deleted the revert-button-color-classes branch April 22, 2025 16:44
xvaara added a commit to xvaara/bootstrap-vue-next that referenced this pull request Apr 28, 2025
* upstream/main: (184 commits)
  fix(BDropdown): don't calulcate the position when dropdown is not shown.
  docs(BTable): complete documentation for table items provider (bootstrap-vue-next#2662)
  fix(BPagination): right/left/up/down arrow keys now operating better after new page chosen (bootstrap-vue-next#2665)
  add the check to hide as well
  fix(useShowHide): don't run show if component already unmounted (ie. BPopover)
  fix(BAccordionItem): fix initial modelValue
  feat(BModal)!: remove autofocus and autofocusButton props and add more versitile focus prop feat(BOffcanvas)!: remove nofocus prop and add more versitile focus prop feat(BModal): return focus to previous element on close feat(BOffcanvas): return focus to previous element on close fix(BModal): set focus only once
  chore: release main (bootstrap-vue-next#2659)
  bth and btd scope attribute updates and bpagination li element needs presentation role (bootstrap-vue-next#2646)
  feat(BBreadcrumb): allow it to use individual breadcrumb trails with useBreadcrumb by passing prop id to component and id param to composable fixes bootstrap-vue-next#2630
  Revert "fix(BButton): Consume useColorVariantClasses (bootstrap-vue-next#2640)" (bootstrap-vue-next#2654)
  chore: release main fixes bootstrap-vue-next#2643
  feat(BTable): Expose additional functions and document them (bootstrap-vue-next#2632)
  fix(BButton): Consume useColorVariantClasses (bootstrap-vue-next#2640)
  docs(BButton): Outline variant example (bootstrap-vue-next#2639)
  fix(BTab): error in recursion (bootstrap-vue-next#2624)
  fix(BTable): correct multi-sort to not update sortby in place (bootstrap-vue-next#2644)
  Update BDropdownForm.vue (bootstrap-vue-next#2635)
  doc(BTable): Fill out light-weight, helper component and accessibility sections (bootstrap-vue-next#2629)
  chore: release main (bootstrap-vue-next#2626)
  ...
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

Successfully merging this pull request may close these issues.

3 participants
0