Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: CButton variant styling when undefined#304

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mrholek merged 1 commit intocoreui:mainfromjrd-lewis:feature/cbutton-variant-fix
Jul 31, 2025

Conversation

jrd-lewis
Copy link
Contributor

This PR will fix where the CButton defaults to 'btn-undefined' when the variant is not declared.

Example, pre-PR with no declaredvariant attribute on a CButton component:

image

New Behavior:

  • If thevariant attribute is undeclared, it will not add'btn-undefined' like it had been doing.
  • If both thecolor andvariant attributes are declared, it will'btn-{variant}-{color}' like it currently does.
  • If thecolor attribute is undeclared and thevariant attribute is declared, it will'btn-{variant}' like it currently does.

@mrholekmrholek merged commitd53b6fe intocoreui:mainJul 31, 2025
@mrholek
Copy link
Member

@jrd-lewis, thank you for your help!

@jrd-lewisjrd-lewis deleted the feature/cbutton-variant-fix branchAugust 1, 2025 02:00
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mrholekmrholekmrholek approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jrd-lewis@mrholek

[8]ページ先頭

©2009-2025 Movatter.jp