Skip to content

Commit 6753978

Browse files
committed
feat: update alert font sizes and remove form banner
Resolves MOPS-2317.
1 parent 9a75646 commit 6753978

File tree

9 files changed

+4
-251
lines changed

9 files changed

+4
-251
lines changed

system/core/src/components/FormBanner.ts

-56
This file was deleted.

system/core/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export * as checkboxRadioLabel from './components/CheckboxRadioLabel';
1313
export * as childAnchors from './components/ChildAnchors';
1414
export * as chip from './components/Chip';
1515
export * as chipRow from './components/ChipRow';
16-
export * as formBanner from './components/FormBanner';
1716
export * as iconButton from './components/IconButton';
1817
export * as inputAlert from './components/InputAlert';
1918
export * as inputCore from './components/InputCore';

system/react-css/src/index.ts

-7
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ export {
7575
export type { Props as CheckboxRadioLabelProps } from './structuredComponents/CheckboxRadioLabel';
7676
export { Chip } from './structuredComponents/Chip';
7777
export type { Props as ChipProps } from './structuredComponents/Chip';
78-
export {
79-
FormBannerCore,
80-
FormBannerMessage,
81-
FormBannerIconWrapper,
82-
FormBanner
83-
} from './structuredComponents/FormBanner';
84-
export type { Props as FormBannerProps } from './structuredComponents/FormBanner';
8578
export { Input } from './structuredComponents/Input';
8679
export type { Props as InputProps } from './structuredComponents/Input';
8780
export { InputAlert } from './structuredComponents/InputAlert';

system/react-css/src/structuredComponents/Alert.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ export const AlertTitle = React.forwardRef<
1818
React.HTMLAttributes<HTMLHeadingElement>
1919
>((props, ref) => (
2020
// eslint-disable-next-line jsx-a11y/heading-has-content
21-
<h4
21+
<h5
2222
{...props}
2323
ref={ref}
24-
style={{ ...(props.style || {}), gridArea: 'title' }}
24+
style={{ ...(props.style || {}), gridArea: 'title', font: 'var(--body-2)' }}
2525
/>
2626
));
2727
export const AlertDescription = React.forwardRef<

system/react-css/src/structuredComponents/FormBanner.tsx

-69
This file was deleted.

system/react/src/index.ts

-7
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,6 @@ export {
140140
export type { Props as AlertProps } from './structuredComponents/Alert';
141141
export { chipStyledComponents, Chip } from './structuredComponents/Chip';
142142
export type { Props as ChipProps } from './structuredComponents/Chip';
143-
export {
144-
FormBannerCore,
145-
FormBannerMessage,
146-
FormBannerIconWrapper,
147-
FormBanner
148-
} from './structuredComponents/FormBanner';
149-
export type { Props as FormBannerProps } from './structuredComponents/FormBanner';
150143
export { Input } from './structuredComponents/Input';
151144
export type { Props as InputProps } from './structuredComponents/Input';
152145
export { InputAlertInner, InputAlert } from './structuredComponents/InputAlert';

system/react/src/structuredComponents/Alert.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ export const AlertCore = styled.div<Props>`
1111
${alert.fullStyles}
1212
`;
1313

14-
export const AlertTitle = styled.h4`
14+
export const AlertTitle = styled.h5`
1515
grid-area: title;
1616
`;
1717

1818
export const AlertDescription = styled.div`
1919
grid-area: description;
20+
font: var(--body-2);
2021
`;
2122

2223
export const AlertCloseButton = styled.button`

system/react/src/structuredComponents/FormBanner.tsx

-56
This file was deleted.

system/stories/src/FormBanner.stories.tsx

-52
This file was deleted.

0 commit comments

Comments
 (0)