Skip to content

feat: namespace internal ui classes#3544

Merged
harbournick merged 1 commit into
mainfrom
artem/namespace-classes
May 29, 2026
Merged

feat: namespace internal ui classes#3544
harbournick merged 1 commit into
mainfrom
artem/namespace-classes

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour commented May 28, 2026

This PR implements SD-2560 (and follow-up hardening) in small, focused steps to reduce CSS collisions with host apps and provide stable UI targeting hooks.

What changed

  • Renamed collision-prone internal classes to sd-*:

    • button-icon -> sd-button-icon
    • toolbar-item (+ compact modifiers) -> sd-toolbar-item
    • button-label -> sd-button-label
    • dropdown-caret -> sd-dropdown-caret
    • CSS class disabled -> sd-disabled
    • CSS class is-disabled -> sd-is-disabled
  • Added stable data-sd-part anchors:

    • toolbar, toolbar-item, editor-root, comment-thread
    • dropdown-trigger (including toolbar dropdown)
    • dropdown-menu (toolbar dropdown menu)
  • Completed follow-up generic class hardening (second wave):

    • active/selected/error -> sd-active/sd-selected/sd-error
    • row/submit/submit-btn -> sd-row/sd-submit/sd-submit-btn
    • option/option-row/option-item/option-state -> sd-option*
    • toolbar-button/toolbar-icon/visually-hidden -> sd-toolbar-* / sd-visually-hidden
    • toolbar-item-ctn -> sd-toolbar-item-ctn
    • context-menu state class is-selected -> sd-is-selected
  • Extended CSS bleed lint coverage

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

SD-2560

@artem-harbour artem-harbour marked this pull request as ready for review May 28, 2026 11:14
@artem-harbour artem-harbour requested a review from a team as a code owner May 28, 2026 11:14
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 44 files

Re-trigger cubic

@artem-harbour artem-harbour force-pushed the artem/namespace-classes branch 3 times, most recently from d7a2fb2 to 37b75b2 Compare May 29, 2026 13:40
@artem-harbour artem-harbour force-pushed the artem/namespace-classes branch from 37b75b2 to 25548b1 Compare May 29, 2026 14:31
Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

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

LGTM

@harbournick harbournick merged commit 195c670 into main May 29, 2026
70 checks passed
@harbournick harbournick deleted the artem/namespace-classes branch May 29, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants