@instructure/ui-color-picker 11.2.0 → 11.2.1-snapshot-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,7 +54,7 @@ const generateStyle = (
54
54
  spacing
55
55
  } = componentTheme
56
56
  const { checkContrast, popoverMaxHeight, margin } = props
57
- const { isSimple } = state
57
+ const { isSimple, calculatedPopoverMaxHeight } = state
58
58
 
59
59
  const cssMargin = mapSpacingToShorthand(margin, spacing)
60
60
  return {
@@ -122,13 +122,18 @@ const generateStyle = (
122
122
  },
123
123
  colorMixerButtonContainer: {
124
124
  label: 'colorPicker__colorMixerButtonContainer',
125
- alignSelf: 'flex-start',
126
125
  marginInlineStart: componentTheme.colorMixerButtonContainerLeftMargin
127
126
  },
128
127
  popoverContentContainer: {
129
128
  label: 'colorPicker__popoverContentContainer',
130
- maxHeight: popoverMaxHeight || '100vh',
131
- overflow: 'auto'
129
+ maxHeight: calculatedPopoverMaxHeight || popoverMaxHeight || '100vh',
130
+ overflowY: 'auto',
131
+ overflowX: 'hidden',
132
+ scrollbarGutter: 'stable',
133
+ display: 'flex',
134
+ flexDirection: 'column',
135
+ opacity: state.isHeightCalculated ? 1 : 0,
136
+ transition: 'opacity 150ms ease-in'
132
137
  },
133
138
  colorMixerButtonWrapper: {
134
139
  label: 'colorPicker__colorMixerButtonWrapper',