feat(react-color-picker): expose headless base APIs - #36517
Open
Dmytro Kirpa (dmytrokirpa) wants to merge 1 commit into
Open
feat(react-color-picker): expose headless base APIs#36517Dmytro Kirpa (dmytrokirpa) wants to merge 1 commit into
Dmytro Kirpa (dmytrokirpa) wants to merge 1 commit into
Conversation
|
Pull request demo site: URL |
Dmytro Kirpa (dmytrokirpa)
force-pushed
the
feat/color-picker-headless-base
branch
from
August 5, 2026 13:19
2e9e6cd to
d4cd9c6
Compare
📊 Bundle size reportUnchanged fixtures
|
Martin Hochel (Hotell)
approved these changes
Aug 5, 2026
Contributor
|
Dmytro Kirpa (@dmytrokirpa) previously we were adding tests to prevent hook regressions, should we add a test before this PR will be merged? |
Victor Genaev (mainframev)
approved these changes
Aug 5, 2026
Dmytro Kirpa (dmytrokirpa)
force-pushed
the
feat/color-picker-headless-base
branch
from
August 6, 2026 07:53
a253416 to
053e0da
Compare
Dmytro Kirpa (dmytrokirpa)
changed the base branch from
master
to
test/react-color-picker-hooks
August 6, 2026 07:54
Contributor
Author
good point, added as a first PR in the stack |
Dmytro Kirpa (dmytrokirpa)
force-pushed
the
feat/color-picker-headless-base
branch
from
August 7, 2026 12:38
053e0da to
89aabe1
Compare
Dmytro Kirpa (dmytrokirpa)
force-pushed
the
feat/color-picker-headless-base
branch
from
August 7, 2026 15:20
89aabe1 to
e7139db
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
@fluentui/react-headless-components-previewneeds the color-picker behavior and slot state without applying the styled components’ visual-only state. This PR separates that reusable behavior from the styled wrappers so the follow-up PR can compose headless controls without duplicating interaction logic.No visual or behavioral change is intended for the existing
@fluentui/react-color-pickercomponents.Changes
ColorPicker,ColorArea,ColorSlider, andAlphaSlideruse*Base_unstablehooks containing shared slot, input, color, orientation, and change-handling behaviorshapeColorPickercontext-values hook for headless compositionColorChannel@fluentui/react-color-pickerReview guidance
Review this PR relative to
test/react-color-picker-hooks. The key boundary is that base hooks own reusable behavior, while existing component hooks continue to add styled-only state.Validation
yarn nx build react-color-pickerPR stack
Depends on #36527 and should be merged after it.