diff --git a/docs-site/src/pages/pattern-lab/_patterns/999-tests/article/00-link.twig b/docs-site/src/pages/pattern-lab/_patterns/999-tests/article/00-link.twig new file mode 100644 index 0000000000..c61a045b32 --- /dev/null +++ b/docs-site/src/pages/pattern-lab/_patterns/999-tests/article/00-link.twig @@ -0,0 +1,45 @@ +

HTML links and e-bolt-links inside e-bolt-article

+
+ HTML Link short +
+
+ https://HTML-link.website.com/search?f%5B0%5D=content_type%3ASupport%20Doc&f%5B1%5D=search_site_content_category%3AProduct&f%5B2%5D=search_site_moderator_tag%3AHow%20To&f%5B3%5D=search_site_moderator_tag%3ATroubleshooting +
+
+ This is a quite long text e-bolt-link to test if it wraps +
+
+ This is a text e-bolt-link with icons before and after +
+
+ +
+
+ +
diff --git a/packages/elements/bolt-article/src/article.scss b/packages/elements/bolt-article/src/article.scss index 621ad4ccfd..acaf65192e 100644 --- a/packages/elements/bolt-article/src/article.scss +++ b/packages/elements/bolt-article/src/article.scss @@ -9,6 +9,10 @@ $_bolt-article-element-spacing: var(--bolt-spacing-y-medium); color: var(--m-bolt-text); line-height: var(--bolt-type-line-height-medium); + a { + overflow-wrap: break-word; + } + p, blockquote, figure,