Skip to content

Commit

Permalink
feat: update alert font sizes and remove form banner
Browse files Browse the repository at this point in the history
Resolves MOPS-2317.
  • Loading branch information
SashaShostyr authored and SimeonC committed Jun 27, 2024
1 parent 9a75646 commit da3dd54
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 251 deletions.
56 changes: 0 additions & 56 deletions system/core/src/components/FormBanner.ts

This file was deleted.

1 change: 0 additions & 1 deletion system/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export * as checkboxRadioLabel from './components/CheckboxRadioLabel';
export * as childAnchors from './components/ChildAnchors';
export * as chip from './components/Chip';
export * as chipRow from './components/ChipRow';
export * as formBanner from './components/FormBanner';
export * as iconButton from './components/IconButton';
export * as inputAlert from './components/InputAlert';
export * as inputCore from './components/InputCore';
Expand Down
7 changes: 0 additions & 7 deletions system/react-css/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ export {
export type { Props as CheckboxRadioLabelProps } from './structuredComponents/CheckboxRadioLabel';
export { Chip } from './structuredComponents/Chip';
export type { Props as ChipProps } from './structuredComponents/Chip';
export {
FormBannerCore,
FormBannerMessage,
FormBannerIconWrapper,
FormBanner
} from './structuredComponents/FormBanner';
export type { Props as FormBannerProps } from './structuredComponents/FormBanner';
export { Input } from './structuredComponents/Input';
export type { Props as InputProps } from './structuredComponents/Input';
export { InputAlert } from './structuredComponents/InputAlert';
Expand Down
8 changes: 6 additions & 2 deletions system/react-css/src/structuredComponents/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const AlertTitle = React.forwardRef<
React.HTMLAttributes<HTMLHeadingElement>
>((props, ref) => (
// eslint-disable-next-line jsx-a11y/heading-has-content
<h4
<h5
{...props}
ref={ref}
style={{ ...(props.style || {}), gridArea: 'title' }}
Expand All @@ -31,7 +31,11 @@ export const AlertDescription = React.forwardRef<
<div
{...props}
ref={ref}
style={{ ...(props.style || {}), gridArea: 'description' }}
style={{
...(props.style || {}),
gridArea: 'description',
font: 'var(--body-2)'
}}
/>
));

Expand Down
69 changes: 0 additions & 69 deletions system/react-css/src/structuredComponents/FormBanner.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions system/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,6 @@ export {
export type { Props as AlertProps } from './structuredComponents/Alert';
export { chipStyledComponents, Chip } from './structuredComponents/Chip';
export type { Props as ChipProps } from './structuredComponents/Chip';
export {
FormBannerCore,
FormBannerMessage,
FormBannerIconWrapper,
FormBanner
} from './structuredComponents/FormBanner';
export type { Props as FormBannerProps } from './structuredComponents/FormBanner';
export { Input } from './structuredComponents/Input';
export type { Props as InputProps } from './structuredComponents/Input';
export { InputAlertInner, InputAlert } from './structuredComponents/InputAlert';
Expand Down
3 changes: 2 additions & 1 deletion system/react/src/structuredComponents/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ export const AlertCore = styled.div<Props>`
${alert.fullStyles}
`;

export const AlertTitle = styled.h4`
export const AlertTitle = styled.h5`
grid-area: title;
`;

export const AlertDescription = styled.div`
grid-area: description;
font: var(--body-2);
`;

export const AlertCloseButton = styled.button`
Expand Down
56 changes: 0 additions & 56 deletions system/react/src/structuredComponents/FormBanner.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions system/stories/src/FormBanner.stories.tsx

This file was deleted.

0 comments on commit da3dd54

Please sign in to comment.