From 5ae6610c3abac9e5d91802bb796d281884712e3b Mon Sep 17 00:00:00 2001 From: Matas Date: Tue, 16 Apr 2024 15:55:12 -0400 Subject: [PATCH] Accessibility: Wrap links and code blocks (#3415) * Wrap links and code blocks * rename word-wrap to overflow-wrap * Add `word-break` * Add `word-break` --- .../plugin-base/src/main/resources/dokka/styles/style.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dokka-subprojects/plugin-base/src/main/resources/dokka/styles/style.css b/dokka-subprojects/plugin-base/src/main/resources/dokka/styles/style.css index 58e68c1d26..f72541cedd 100644 --- a/dokka-subprojects/plugin-base/src/main/resources/dokka/styles/style.css +++ b/dokka-subprojects/plugin-base/src/main/resources/dokka/styles/style.css @@ -807,6 +807,8 @@ code:not(.block) { position: absolute; top: 8px; right: 8px; + overflow-wrap: break-word; + word-break: break-word; } .sideMenuPart > .overview { @@ -1029,6 +1031,8 @@ h1.cover { font-size: inherit; line-height: inherit; transition: color .1s, border-color .1s; + overflow-wrap: break-word; + word-break: break-word; } .main-content a:hover {