Skip to content

Commit c34e675

Browse files
committed
Add startDecorator and endDecorator classes to Alert
1 parent e8c87b3 commit c34e675

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

packages/mui-joy/src/Alert/alertClasses.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ import { generateUtilityClass, generateUtilityClasses } from '../className';
33
export interface AlertClasses {
44
/** Styles applied to the root element. */
55
root: string;
6-
/** Styles applied to the icon wrapper element. */
7-
icon: string;
8-
/** Styles applied to the action wrapper element if `action` is provided. */
9-
action: string;
10-
/** Styles applied to the message wrapper element. */
11-
message: string;
126
/** Styles applied to the root element if `color="primary"`. */
137
colorPrimary: string;
148
/** Styles applied to the root element if `color="danger"`. */
@@ -21,12 +15,16 @@ export interface AlertClasses {
2115
colorSuccess: string;
2216
/** Styles applied to the root element if `color="warning"`. */
2317
colorWarning: string;
18+
/** Styles applied to the endDecorator element if supplied. */
19+
endDecorator: string;
2420
/** Styles applied to the root element if `size="sm"`. */
2521
sizeSm: string;
2622
/** Styles applied to the root element if `size="md"`. */
2723
sizeMd: string;
2824
/** Styles applied to the root element if `size="lg"`. */
2925
sizeLg: string;
26+
/** Styles applied to the startDecorator element if supplied. */
27+
startDecorator: string;
3028
/** Styles applied to the root element if `variant="plain"`. */
3129
variantPlain: string;
3230
/** Styles applied to the root element if `variant="outlined"`. */
@@ -45,9 +43,8 @@ export function getAlertUtilityClass(slot: string): string {
4543

4644
const alertClasses: AlertClasses = generateUtilityClasses('JoyAlert', [
4745
'root',
48-
'action',
49-
'icon',
50-
'message',
46+
'startDecorator',
47+
'endDecorator',
5148
'colorPrimary',
5249
'colorDanger',
5350
'colorInfo',

0 commit comments

Comments
 (0)