File tree Expand file tree Collapse file tree
packages/react-core/src/components/Avatar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export interface AvatarProps extends React.DetailedHTMLProps<
1111 className ?: string ;
1212 /** Attribute that specifies the URL of the image for the avatar. */
1313 src ?: string ;
14- /** Attribute that specifies the alternate text of the image for the avatar. Will set aria-label for children or initials avatars . */
14+ /** Attribute that specifies the alternate text of the image for the avatar. Will set aria-label avatars using children or initials. */
1515 alt : string ;
1616 /** Flag to indicate the avatar should have a border. */
1717 isBordered ?: boolean ;
Original file line number Diff line number Diff line change @@ -4,47 +4,47 @@ import RhUiAiChatbotIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ai-c
44
55< Fragment >
66 < Avatar color = "red" alt = "red icon avatar" >
7- < Icon size = "xl" >
7+ < Icon size = "xl" isInline >
88 < RhUiAiChatbotIcon />
99 </ Icon >
1010 </ Avatar >
1111 < Avatar color = "orangered" alt = "orangered icon avatar" >
12- < Icon size = "xl" >
12+ < Icon size = "xl" isInline >
1313 < RhUiAiChatbotIcon />
1414 </ Icon >
1515 </ Avatar >
1616 < Avatar color = "orange" alt = "orange icon avatar" >
17- < Icon size = "xl" >
17+ < Icon size = "xl" isInline >
1818 < RhUiAiChatbotIcon />
1919 </ Icon >
2020 </ Avatar >
2121 < Avatar color = "yellow" alt = "yellow icon avatar" >
22- < Icon size = "xl" >
22+ < Icon size = "xl" isInline >
2323 < RhUiAiChatbotIcon />
2424 </ Icon >
2525 </ Avatar >
2626 < Avatar color = "green" alt = "green icon avatar" >
27- < Icon size = "xl" >
27+ < Icon size = "xl" isInline >
2828 < RhUiAiChatbotIcon />
2929 </ Icon >
3030 </ Avatar >
3131 < Avatar color = "teal" alt = "teal icon avatar" >
32- < Icon size = "xl" >
32+ < Icon size = "xl" isInline >
3333 < RhUiAiChatbotIcon />
3434 </ Icon >
3535 </ Avatar >
3636 < Avatar color = "blue" alt = "blue icon avatar" >
37- < Icon size = "xl" >
37+ < Icon size = "xl" isInline >
3838 < RhUiAiChatbotIcon />
3939 </ Icon >
4040 </ Avatar >
4141 < Avatar color = "purple" alt = "purple icon avatar" >
42- < Icon size = "xl" >
42+ < Icon size = "xl" isInline >
4343 < RhUiAiChatbotIcon />
4444 </ Icon >
4545 </ Avatar >
4646 < Avatar color = "gray" alt = "gray icon avatar" >
47- < Icon size = "xl" >
47+ < Icon size = "xl" isInline >
4848 < RhUiAiChatbotIcon />
4949 </ Icon >
5050 </ Avatar >
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ import { Fragment } from 'react';
22import { Avatar } from '@patternfly/react-core' ;
33
44< Fragment >
5- < Avatar color = "red" alt = "red initials avatar" initials = "AB" />
6- < Avatar color = "orangered" alt = "orangered initials avatar" initials = "AB" />
7- < Avatar color = "orange" alt = "orange initials avatar" initials = "AB" />
8- < Avatar color = "yellow" alt = "yellow initials avatar" initials = "AB" />
9- < Avatar color = "green" alt = "green initials avatar" initials = "AB" />
10- < Avatar color = "teal" alt = "teal initials avatar" initials = "AB" />
11- < Avatar color = "blue" alt = "blue initials avatar" initials = "AB" />
12- < Avatar color = "purple" alt = "purple initials avatar" initials = "AB" />
13- < Avatar color = "gray" alt = "gray initials avatar" initials = "AB" />
5+ < Avatar color = "red" alt = "red AB avatar" initials = "AB" />
6+ < Avatar color = "orangered" alt = "orangered AB avatar" initials = "AB" />
7+ < Avatar color = "orange" alt = "orange AB avatar" initials = "AB" />
8+ < Avatar color = "yellow" alt = "yellow AB avatar" initials = "AB" />
9+ < Avatar color = "green" alt = "green AB avatar" initials = "AB" />
10+ < Avatar color = "teal" alt = "teal AB avatar" initials = "AB" />
11+ < Avatar color = "blue" alt = "blue AB avatar" initials = "AB" />
12+ < Avatar color = "purple" alt = "purple AB avatar" initials = "AB" />
13+ < Avatar color = "gray" alt = "gray AB avatar" initials = "AB" />
1414</ Fragment > ;
Original file line number Diff line number Diff line change 22# ws-react-c-avatar-with-initials ,
33# ws-react-c-avatar-with-icons {
44 display : flex;
5+ flex-wrap : wrap;
56 gap : 3px ;
67}
You can’t perform that action at this time.
0 commit comments