Skip to content

Reflect row and cell states as part names #4297

@rolfsmeds

Description

@rolfsmeds

Describe your motivation

The following states, currently only modelled as attributes, are not targetable using the ::part() selector:

  • row:selected
  • row:odd
  • row:expanded
  • row:first
  • row:last
  • cell:first-column
  • cell:last-column
  • cell:selected
  • cell:frozen
  • cell:froze-to-end

Describe the solution you'd like

Reflect these states as dynamically applied part names on the elements.

E.g. the selected attribute is currently <tr selected part="row">
After the changes it would be <tr selected part="row selected"> or <tr selected part="row row-selected">, depending on how we want to name state-parts.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions