Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Color Picker: Improve color picker slider focus styles
  • Loading branch information
himanshupathak95 committed Jun 23, 2025
commit 9939db45cafe5b29558b0e7a9b87f2e230b9d6a7
10 changes: 10 additions & 0 deletions packages/components/src/color-picker/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ export const ColorfulWrapper = styled.div`

// Shown instead of box-shadow to Windows high contrast mode.
outline: 2px solid transparent;

@media not ( prefers-reduced-motion ) {
transition: transform ${ CONFIG.transitionDurationFast } ease-in-out;
}
}

.react-colorful__interactive:focus .react-colorful__pointer {
box-shadow: 0 0 0 ${ CONFIG.borderWidthFocus } ${ CONFIG.surfaceColor };
border: ${ CONFIG.borderWidthFocus } solid black;
transform: translate( -50%, -50% ) scale( 1.5 );
}

.react-colorful__pointer-fill {
Expand Down