-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor out CSS gradient from custom-gradient-bar (#27936)
- Loading branch information
Showing
8 changed files
with
486 additions
and
496 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const COLOR_POPOVER_PROPS = { | ||
className: 'components-custom-gradient-picker__color-picker-popover', | ||
position: 'top', | ||
}; | ||
|
||
export const GRADIENT_MARKERS_WIDTH = 18; | ||
export const INSERT_POINT_WIDTH = 23; | ||
export const MINIMUM_ABSOLUTE_LEFT_POSITION = 5; | ||
export const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT = 10; | ||
export const MINIMUM_DISTANCE_BETWEEN_POINTS = 0; | ||
export const MINIMUM_SIGNIFICANT_MOVE = 5; | ||
|
||
export const KEYBOARD_CONTROL_POINT_VARIATION = MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT; | ||
export const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_MARKER = | ||
( INSERT_POINT_WIDTH + GRADIENT_MARKERS_WIDTH ) / 2; |
This file contains 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
Oops, something went wrong.