Skip to content

feat(element-theme): align ghost button naming convention#1882

Draft
ljanner wants to merge 1 commit intomainfrom
refactor/ghost-button-naming
Draft

feat(element-theme): align ghost button naming convention#1882
ljanner wants to merge 1 commit intomainfrom
refactor/ghost-button-naming

Conversation

@ljanner
Copy link
Copy Markdown
Member

@ljanner ljanner commented Apr 15, 2026

  • Add schematics

.btn-ghost now represents the primary ghost button style, consistent with the naming convention established by .btn-secondary-ghost and .btn-tertiary-ghost. All internal usages of the old .btn-ghost (which had tertiary ghost styling) have been migrated to .btn-tertiary-ghost. The transitional .btn-primary-ghost class introduced in v49.5.0 has been removed.

Resolves #1797

BREAKING CHANGE: .btn-ghost no longer applies tertiary ghost styling. When using .btn-ghost as a tertiary ghost button it must be renamed to .btn-tertiary-ghost. A schematic migration will be provided to automate this update.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

@ljanner ljanner added this to the 50.0.0 milestone Apr 15, 2026
@ljanner ljanner self-assigned this Apr 15, 2026
@ljanner ljanner added the breaking-changes Marks issues and PRs that are breaking the API label Apr 15, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors button class naming across the library and examples to align with a new convention where .btn-primary-ghost is renamed to .btn-ghost and the previous .btn-ghost is updated to .btn-tertiary-ghost. Feedback identifies an accessibility issue in the si-input-pill component where a span is used for an interactive deletion action; it is recommended to use a proper button element with an aria-label and stop event propagation to ensure keyboard focus and prevent event bubbling.

Comment thread projects/element-ng/pills-input/si-input-pill.component.html Outdated
@ljanner ljanner force-pushed the refactor/ghost-button-naming branch 2 times, most recently from fddf6cc to 49e47ef Compare April 15, 2026 15:41
`.btn-ghost` now represents the primary ghost button style, consistent
with the naming convention established by `.btn-secondary-ghost` and
`.btn-tertiary-ghost`. All internal usages of the old `.btn-ghost`
(which had tertiary ghost styling) have been migrated to
`.btn-tertiary-ghost`. The transitional `.btn-primary-ghost` class
introduced in v49.5.0 has been removed.

Resolves #1797

BREAKING CHANGE: `.btn-ghost` no longer applies tertiary ghost styling.
When using `.btn-ghost` as a tertiary ghost button it must be renamed
to `.btn-tertiary-ghost`. A schematic migration will be provided to
automate this update.
@ljanner ljanner force-pushed the refactor/ghost-button-naming branch from 49e47ef to bb454ff Compare April 16, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-changes Marks issues and PRs that are breaking the API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ghost button not following naming conventions

1 participant