Skip to content

[switch] Update explainer to reflect resolution in #1282#1376

Open
gfellerph wants to merge 2 commits intoopenui:mainfrom
gfellerph:main
Open

[switch] Update explainer to reflect resolution in #1282#1376
gfellerph wants to merge 2 commits intoopenui:mainfrom
gfellerph:main

Conversation

@gfellerph
Copy link
Collaborator

@gfellerph gfellerph commented Feb 20, 2026

With the resolution to support the switch attribute proposal, several changes have been introduced to this explainer:

  • Moved to non-active proposals in the navigation
  • Updated introductory paragraph with reasoning for the new resolution
  • Cleaned up Features, Styleability and Accessibility sections and removed switch element references as well as obsolete content
  • Removed open questions as explainer is inactive
  • Added a table of contents, author and last updated field
  • Multiple small fixes like typos and clarifications

Preview: https://deploy-preview-1376--open-ui.netlify.app/components/switch.explainer/

With the resolution to support the switch attribute proposal, several changes have been introduced to this explainer:
- Moved to non-active proposals in the navigation
- Updated introductory paragraph with reasoning for the new resolution
- Cleaned up Features, Styleability and Accessibility sections and removed switch element references as well as obsolete content
- Added a table of contents, author and last updated field
- Multiple small fixes like typos and clarifications
Slightly opinionated style update for content sections.
- Updates header margins to allow for more space between the previous paragraph and the new section to visually distinguish content that belongs together
- Updates bullet and ordered list styles to place the bullet outside and left align multi-line content on the same line
</td>
<td>
```css
input[switch]::track {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
input[switch]::slider-track {

</td>
<td>
```css
input[switch]::thumb {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
input[switch]::slider-thumb {

Comment on lines 228 to 233
input[switch]::before {
content: 'ON';
}
input[switch]:lang(de)::before {
content: 'AN';
}
Copy link
Collaborator

@lukewarlow lukewarlow Feb 20, 2026

Choose a reason for hiding this comment

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

Suggested change
input[switch]::slider-track {
content: 'ON';
}
input[switch]:lang(de)::slider-track {
content: 'AN';
}

presumably this? Though perhaps actually ::slider-fill because that's what will render on top of the track when the switch is on?

```

```css
input[switch]::before {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Again wrong pseudo probably

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.

2 participants