Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 7 additions & 0 deletions .changeset/word-break-updates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@spectrum-web-components/textfield': patch
'@spectrum-web-components/sidenav': patch
'@spectrum-web-components/tooltip': patch
---

Replace deprecated `word-break: break-word` with `overflow-wrap: break-word` to align with modern CSS standards and improve cross-browser compatibility. This property was deprecated in Chrome 44 (July 2015) in favor of the standardized `overflow-wrap` property.
2 changes: 1 addition & 1 deletion packages/sidenav/src/spectrum-sidenav-item.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ governing permissions and limitations under the License.
#item-link {
padding-inline: var(--mod-sidenav-inline-padding, var(--spectrum-sidenav-inline-padding));
box-sizing: border-box;
word-break: break-word;
overflow-wrap: break-word;
hyphens: auto;
cursor: pointer;
transition:
Expand Down
3 changes: 1 addition & 2 deletions packages/textfield/src/textfield.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ textarea {

#sizer {
block-size: auto;
/* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
word-break: break-word;
overflow-wrap: break-word;
opacity: 0;
white-space: pre-line;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/tooltip/src/spectrum-tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ governing permissions and limitations under the License.
font-size: var(--mod-tooltip-font-size, var(--spectrum-tooltip-font-size));
font-weight: var(--mod-tooltip-font-weight, var(--spectrum-tooltip-font-weight));
line-height: var(--mod-tooltip-line-height, var(--spectrum-tooltip-line-height));
word-break: break-word;
overflow-wrap: break-word;
-webkit-font-smoothing: antialiased;
cursor: default;
-webkit-user-select: none;
Expand Down
Loading