Skip to content

chore: remove ElementStyles.withBehaviors#7483

Merged
janechu merged 4 commits intoreleases/fast-element-v3from
users/janechu/remove-with-behaviors
Apr 23, 2026
Merged

chore: remove ElementStyles.withBehaviors#7483
janechu merged 4 commits intoreleases/fast-element-v3from
users/janechu/remove-with-behaviors

Conversation

@janechu
Copy link
Copy Markdown
Collaborator

@janechu janechu commented Apr 22, 2026

Pull Request

📖 Description

Removes ElementStyles.withBehaviors() and the remaining stylesheet
behavior-composition path from @microsoft/fast-element.

This change also:

  • removes CSS bindings in css
  • removes stylesheet-attached behavior composition from css and css.partial()
  • keeps CSSDirective as a static CSS extension point via createCSS(): ComposableStyles
  • keeps runtime stylesheet toggling on ElementController.addStyles() / removeStyles()

This also updates the related Playwright coverage, migration guidance,
package docs, and regenerated 3.x API and export-size documentation.

🎫 Issues

📑 Test Plan

  • npm run build
  • npm run prebuild -w sites/website
  • npm run biome:check
  • npm run checkchange
  • npm run test
  • npm run test:playwright -w @microsoft/fast-element -- -x --reporter=line

✅ Checklist

General

  • I have included a change request file using $ npm run change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

@janechu janechu added fast-element-v3 Pertains to fast-element-v3 labels Apr 22, 2026
janechu and others added 4 commits April 22, 2026 19:44
Remove the public ElementStyles.withBehaviors API while preserving internal CSS directive behavior composition and updating the related docs and migration guidance.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@janechu janechu force-pushed the users/janechu/remove-with-behaviors branch from 0f7aa49 to e95656e Compare April 23, 2026 02:52
@janechu janechu marked this pull request as ready for review April 23, 2026 02:59
@janechu janechu changed the title feat: remove ElementStyles.withBehaviors chore: remove ElementStyles.withBehaviors Apr 23, 2026
@janechu janechu merged commit 746579f into releases/fast-element-v3 Apr 23, 2026
13 checks passed
@janechu janechu deleted the users/janechu/remove-with-behaviors branch April 23, 2026 17:46
@janechu janechu mentioned this pull request Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-element-v3 Pertains to fast-element-v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants