File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,24 +20,24 @@ export default function ActionCardSimplePage() {
2020 header = { < b > EC2 access to S3</ b > }
2121 description = "A description of the template/icebreaker"
2222 iconName = "angle-right"
23- iconAlign = "right"
24- iconVerticalAlign = "top"
23+ iconPosition = "right"
24+ iconVerticalAlignment = "top"
2525 onClick = { ( ) => setClickedCard ( 'Basic' ) }
2626 > </ ActionCard >
2727 < ActionCard
2828 header = { < b > EC2 access to S3</ b > }
2929 description = "A description of the template/icebreaker"
3030 iconName = "arrow-right"
31- iconAlign = "right"
32- iconVerticalAlign = "top"
31+ iconPosition = "right"
32+ iconVerticalAlignment = "top"
3333 onClick = { ( ) => setClickedCard ( 'Basic' ) }
3434 > </ ActionCard >
3535 < ActionCard
3636 header = { < b > Account alias (111112222233333)</ b > }
3737 description = "Dev/john.doe@amazon.com"
3838 iconName = "angle-right"
39- iconAlign = "right"
40- iconVerticalAlign = "top"
39+ iconPosition = "right"
40+ iconVerticalAlignment = "top"
4141 onClick = { ( ) => setClickedCard ( 'Basic' ) }
4242 >
4343 Logged in 1 minute ago
Original file line number Diff line number Diff line change @@ -87,16 +87,16 @@ export interface ActionCardProps extends BaseComponentProps {
8787 iconAlt ?: string ;
8888
8989 /**
90- * Specifies the horizontal alignment of the icon.
90+ * Specifies the horizontal position of the icon.
9191 * @default 'left'
9292 */
93- iconAlign ?: ActionCardProps . IconAlign ;
93+ iconPosition ?: ActionCardProps . IconAlign ;
9494
9595 /**
9696 * Specifies the vertical alignment of the icon.
9797 * @default 'top'
9898 */
99- iconVerticalAlign ?: ActionCardProps . IconVerticalAlign ;
99+ iconVerticalAlignment ?: ActionCardProps . IconVerticalAlign ;
100100}
101101
102102export namespace ActionCardProps {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ const InternalActionCard = React.forwardRef(
2727 iconUrl,
2828 iconSvg,
2929 iconAlt,
30- iconAlign = 'left' ,
31- iconVerticalAlign = 'top' ,
30+ iconPosition = 'left' ,
31+ iconVerticalAlignment = 'top' ,
3232 ...rest
3333 } : InternalActionCardPropsWithRef ,
3434 ref : React . Ref < ActionCardProps . Ref >
@@ -84,8 +84,8 @@ const InternalActionCard = React.forwardRef(
8484 styles . root ,
8585 disabled && styles . disabled ,
8686 hasIcon && styles [ 'has-icon' ] ,
87- hasIcon && styles [ `icon-align-${ iconAlign } ` ] ,
88- hasIcon && styles [ `icon-vertical-align-${ iconVerticalAlign } ` ] ,
87+ hasIcon && styles [ `icon-align-${ iconPosition } ` ] ,
88+ hasIcon && styles [ `icon-vertical-align-${ iconVerticalAlignment } ` ] ,
8989 baseProps . className
9090 ) }
9191 onClick = { handleClick }
@@ -95,9 +95,9 @@ const InternalActionCard = React.forwardRef(
9595 aria-disabled = { disabled }
9696 disabled = { disabled }
9797 >
98- { iconAlign === 'left' && iconElement }
98+ { iconPosition === 'left' && iconElement }
9999 { contentElement }
100- { iconAlign === 'right' && iconElement }
100+ { iconPosition === 'right' && iconElement }
101101 </ button >
102102 ) ;
103103 }
You can’t perform that action at this time.
0 commit comments