Skip to content

Commit

Permalink
Do not remove deprecated rowCompressed, but add more documentation …
Browse files Browse the repository at this point in the history
…around it

+ remove internal usage
  • Loading branch information
cee-chen committed Nov 13, 2024
1 parent fd550e0 commit ef2ad65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/eui/src/components/color_picker/color_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ export const EuiColorPicker: FunctionComponent<EuiColorPickerProps> = ({
mode === 'secondaryInput' || secondaryInputDisplay !== 'none';
const inlineInput = showSecondaryInput && (
<EuiFormRow
display="rowCompressed"
isInvalid={isInvalid}
error={isInvalid ? colorErrorMessage : null}
>
Expand Down
3 changes: 1 addition & 2 deletions packages/eui/src/components/form/form_row/form_row.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export const euiFormRowStyles = (euiThemeContext: UseEuiTheme) => {
${logicalCSS('margin-top', euiTheme.size.base)}
}
`,
// No difference from the uncompressed row for this current theme AFAICT
// TODO: Deprecate prop
// No difference from the uncompressed row for the current EUI theme
get rowCompressed() {
return this.row;
},
Expand Down
3 changes: 2 additions & 1 deletion packages/eui/src/components/form/form_row/form_row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const DISPLAYS = [
'center',
'centerCompressed',
/**
* @deprecated
* This currently does not affect styles/appearances
* in EUI's present primary theme, but may in the future.
*/
'rowCompressed',
] as const;
Expand Down

0 comments on commit ef2ad65

Please sign in to comment.