Skip to content

Commit

Permalink
Merge branch 'main' into spike/363-SnackbarProofOfConcept
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRoe authored Jul 16, 2024
2 parents dc22bae + eeacf36 commit f2c5c52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@department-of-veterans-affairs/mobile-component-library",
"version": "0.20.2",
"version": "0.20.3",
"description": "VA Design System Mobile Component Library",
"main": "src/index.tsx",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions packages/components/src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,17 @@ export const Alert: FC<AlertProps> = ({
{expanded && (
<View style={{ flexDirection: 'row' }}>
<View style={{ flex: 1 }}>
{header && (description || children) ? <Spacer /> : null}
{header && (description || children) ? (
<Spacer size={Sizing._20} />
) : null}
{description ? (
<View
accessible={true}
aria-label={descriptionA11yLabel || description}>
<Text style={descriptionFont}>{description}</Text>
</View>
) : null}
{description && children ? <Spacer /> : null}
{description && children ? <Spacer size={Sizing._20} /> : null}
{children}
</View>
{/* When expandable, prevent body content extending below the expand icon and padding for it */}
Expand Down

0 comments on commit f2c5c52

Please sign in to comment.