Skip to content
Snippets Groups Projects
Commit 8024cccf authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

Merge branch '17-diffuser-une-enquete-dans-la-custom-popup' into 'dev'

feat(custom-popup): added link in custom modal

See merge request !883
parents 901c7f27 da0be137
No related branches found
No related tags found
2 merge requests!905MEP 2.4 : intégration Ma Bulle,!883feat(custom-popup): added link in custom modal
......@@ -38,7 +38,6 @@ const CustomPopupModal: React.FC<CustomPopupModalProps> = ({
}}
>
<div id="accessibility-title">{customPopup.title}</div>
<div id="accessibility-content">{customPopup.description}</div>
<IconButton
aria-label={t('feedback.accessibility.button_close')}
className="modal-paper-close-button"
......@@ -47,15 +46,18 @@ const CustomPopupModal: React.FC<CustomPopupModalProps> = ({
<Icon icon={CloseIcon} size={16} />
</IconButton>
<div className="customPopupModal">
<StyledIcon icon={Speaker} size={100} className={'warn-icon'} />
<StyledIcon icon={Speaker} size={100} />
<div className="customPopup-title text-20-bold">
{customPopup.title}
</div>
<div className="customPopup-content text-16-normal">
{customPopup.description}
</div>
<div
className="customPopup-content text-16-normal"
dangerouslySetInnerHTML={{
__html: customPopup.description,
}}
/>
<Button
onClick={handleCloseClick}
......
......@@ -417,11 +417,6 @@ exports[`CustomPopupModal component should render correctly 1`] = `
>
Bold title
</div>
<div
id="accessibility-content"
>
Interesting description
</div>
<button
aria-label="feedback.accessibility.button_close"
class="MuiButtonBase-root MuiIconButton-root modal-paper-close-button"
......@@ -450,7 +445,7 @@ exports[`CustomPopupModal component should render correctly 1`] = `
>
<svg
aria-hidden="true"
class="warn-icon styles__icon___23x3R"
class="styles__icon___23x3R"
height="100"
width="100"
>
......@@ -695,11 +690,6 @@ exports[`CustomPopupModal component should render correctly 1`] = `
>
Bold title
</div>
<div
id="accessibility-content"
>
Interesting description
</div>
<WithStyles(ForwardRef(IconButton))
aria-label="feedback.accessibility.button_close"
className="modal-paper-close-button"
......@@ -829,27 +819,25 @@ exports[`CustomPopupModal component should render correctly 1`] = `
className="customPopupModal"
>
<StyledIcon
className="warn-icon"
icon="test-file-stub"
size={100}
>
<Icon
aria-hidden={true}
className="warn-icon"
icon="test-file-stub"
size={100}
spin={false}
>
<Component
aria-hidden={true}
className="warn-icon styles__icon___23x3R"
className="styles__icon___23x3R"
height={100}
style={Object {}}
width={100}
>
<svg
aria-hidden={true}
className="warn-icon styles__icon___23x3R"
className="styles__icon___23x3R"
height={100}
style={Object {}}
width={100}
......@@ -868,9 +856,12 @@ exports[`CustomPopupModal component should render correctly 1`] = `
</div>
<div
className="customPopup-content text-16-normal"
>
Interesting description
</div>
dangerouslySetInnerHTML={
Object {
"__html": "Interesting description",
}
}
/>
<WithStyles(ForwardRef(Button))
classes={
Object {
......
......@@ -6,29 +6,35 @@
}
.customPopupModal {
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
max-width: 20rem;
.warn-icon {
margin: 1rem auto;
display: block;
}
.customPopup-title {
text-align: center;
color: $gold-shadow;
margin: 1rem auto;
}
.customPopup-content {
text-align: center;
color: $grey-bright;
font-weight: 700;
p {
color: $grey-bright;
}
a {
color: $gold-shadow;
}
}
button.btn-highlight {
padding: 0.65rem;
padding: 0.65rem 2.5rem;
margin-top: 1rem;
width: unset;
}
}
#accessibility-title,
#accessibility-content {
#accessibility-title {
display: none;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment