Skip to content

Commit 0f9d508

Browse files
authored
Line-break element (#1433)
1 parent 8e76460 commit 0f9d508

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

special-pages/pages/special-error/app/components/Warning.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,10 @@
119119
& .phishing .icon, & .malware .icon {
120120
background-image: url(../../../../shared/assets/img/icons/Malware-Site-96.svg);
121121
}
122+
123+
/* Inserts line break before an inline element. Used for the Learn More link in the Warning text */
124+
& [data-line-break]::before {
125+
content: ' ';
126+
display: block;
127+
}
122128
}

special-pages/pages/special-error/app/hooks/ErrorStrings.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const sanitizeURL = (urlString) => {
2727
*/
2828

2929
const helpPageAnchorTagParams = {
30+
'data-line-break': true,
3031
href: phishingMalwareHelpPageURL,
3132
target: '_blank',
3233
};

0 commit comments

Comments
 (0)