Skip to content

Commit

Permalink
[PR feedback] word goodly
Browse files Browse the repository at this point in the history
Co-authored-by: Lene Gadewoll <lene.gadewoll@elastic.co>
  • Loading branch information
cee-chen and mgadewoll authored Mar 27, 2024
1 parent 5d42711 commit e95a45b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type EuiComponentDefaults = {
/**
* Provide a global configuration for EuiTable's `responsiveBreakpoint` prop. Defaults to `'s'`.
*
* Defaults will be inherited all `EuiBasicTable`s and `EuiInMemoryTable`s.
* Defaults will be inherited by all `EuiBasicTable`s and `EuiInMemoryTable`s.
*/
EuiTable?: Pick<EuiTableProps, 'responsiveBreakpoint'>;
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/table/mobile/responsive_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const useIsEuiTableResponsive = (
const isBoolean = typeof breakpoint === 'boolean';

// We use ! and minBreakpoint to more accurately reflect the single point at which tables collapse
const isResponsive = !useIsWithinMinBreakpoint(isBoolean ? '' : breakpoint);
return isBoolean ? breakpoint : !useIsWithinMinBreakpoint(breakpoint);
return isBoolean ? breakpoint : isResponsive;
};

Expand Down

0 comments on commit e95a45b

Please sign in to comment.