Skip to content

Commit

Permalink
Merge branch 'develop' into task/use-shas-in-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens authored Nov 27, 2024
2 parents eb99803 + 2a59067 commit 36c50ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions packages/css/src/components/alert/alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

.ams-alert {
align-items: flex-start;
background-color: var(--ams-alert-background-color);
border-style: var(--ams-alert-border-style);
border-width: var(--ams-alert-border-width);
display: flex;
Expand All @@ -23,21 +24,17 @@
}

.ams-alert--error {
background-color: var(--ams-alert-error-background-color);
border-color: var(--ams-alert-error-border-color);
}

.ams-alert--info {
background-color: var(--ams-alert-info-background-color);
border-color: var(--ams-alert-info-border-color);
}

.ams-alert--success {
background-color: var(--ams-alert-success-background-color);
border-color: var(--ams-alert-success-border-color);
}

.ams-alert--warning {
background-color: var(--ams-alert-warning-background-color);
border-color: var(--ams-alert-warning-border-color);
}
2 changes: 1 addition & 1 deletion packages/react/src/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const Alert = forwardRef(
)}
{children}
</div>
{closeable && <IconButton contrastColor label={closeButtonLabel} size={alertSize} onClick={onClose} />}
{closeable && <IconButton label={closeButtonLabel} size={alertSize} onClick={onClose} />}
</Tag>
)
},
Expand Down
5 changes: 1 addition & 4 deletions proprietary/tokens/src/components/ams/alert.tokens.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
{
"ams": {
"alert": {
"background-color": { "value": "{ams.brand.color.neutral.0}" },
"border-width": { "value": "{ams.border.width.xl}" },
"border-style": { "value": "solid" },
"gap": { "value": "{ams.space.sm}" },
"padding-block": { "value": "{ams.space.md}" },
"padding-inline": { "value": "{ams.space.lg}" },
"error": {
"background-color": { "value": "{ams.brand.color.red.20}" },
"border-color": { "value": "{ams.brand.color.red.60}" }
},
"info": {
"background-color": { "value": "{ams.brand.color.azure.20}" },
"border-color": { "value": "{ams.brand.color.azure.60}" }
},
"success": {
"background-color": { "value": "{ams.brand.color.green.20}" },
"border-color": { "value": "{ams.brand.color.green.60}" }
},
"warning": {
"background-color": { "value": "{ams.brand.color.orange.20}" },
"border-color": { "value": "{ams.brand.color.orange.60}" }
},
"content": {
Expand Down

0 comments on commit 36c50ad

Please sign in to comment.