Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 46353 alert testo a sx #349

Merged
merged 5 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
- ...
-->

## Versione X.X.X (dd/mm/yyyy)

### Fix

- Sistemato margine del blocco Alert quando allineato a sinistra

## Versione 8.7.0 (20/09/2023)

### Migliorie
Expand Down
6 changes: 3 additions & 3 deletions src/components/ItaliaTheme/Blocks/Alert/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const View = ({ data, pathname }) => {

return (
<section role="alert" className="block alertblock">
<Row className={cx('row-full-width', 'bg-alert-' + data.color)}>
<div className={cx('full-width', 'bg-alert-' + data.color)}>
<Container className="p-4 pt-5 pb-5">
<Row className="align-items-start">
<Row className="align-items-start negative-margin">
{data.image?.data && (
<Col sm={2} className="pb-3 image-col">
<img
Expand All @@ -46,7 +46,7 @@ const View = ({ data, pathname }) => {
<Col>{content}</Col>
</Row>
</Container>
</Row>
</div>
</section>
);
};
Expand Down
5 changes: 3 additions & 2 deletions src/components/ItaliaTheme/Blocks/__tests__/Alert.test.jsx

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/theme/ItaliaTheme/Blocks/_alert.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.public-ui {
.block.alertblock,
.alertblock {
.full-width {
height: auto;
}

.bg-alert-danger {
background-color: #a32219;
color: $white;
Expand Down Expand Up @@ -67,6 +71,15 @@
}
}

.negative-margin {
margin-left: -6px;
deodorhunter marked this conversation as resolved.
Show resolved Hide resolved
margin-right: -6px;

.col {
padding: 0px 6px;
deodorhunter marked this conversation as resolved.
Show resolved Hide resolved
}
}

.DraftEditor-root {
background: none;
}
Expand Down