Skip to content

Commit e9eddb3

Browse files
committed
fix(tooltip,textfield,sidenav): update deprecated css
1 parent 4e397db commit e9eddb3

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.changeset/word-break-updates.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@spectrum-web-components/textfield': patch
3+
'@spectrum-web-components/sidenav': patch
4+
'@spectrum-web-components/tooltip': patch
5+
---
6+
7+
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.

packages/sidenav/src/spectrum-sidenav-item.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ governing permissions and limitations under the License.
130130
#item-link {
131131
padding-inline: var(--mod-sidenav-inline-padding, var(--spectrum-sidenav-inline-padding));
132132
box-sizing: border-box;
133-
word-break: break-word;
133+
overflow-wrap: break-word;
134134
hyphens: auto;
135135
cursor: pointer;
136136
transition:

packages/textfield/src/textfield.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ textarea {
5656

5757
#sizer {
5858
block-size: auto;
59-
/* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
60-
word-break: break-word;
59+
overflow-wrap: break-word;
6160
opacity: 0;
6261
white-space: pre-line;
6362
}

packages/tooltip/src/spectrum-tooltip.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ governing permissions and limitations under the License.
9292
font-size: var(--mod-tooltip-font-size, var(--spectrum-tooltip-font-size));
9393
font-weight: var(--mod-tooltip-font-weight, var(--spectrum-tooltip-font-weight));
9494
line-height: var(--mod-tooltip-line-height, var(--spectrum-tooltip-line-height));
95-
word-break: break-word;
95+
overflow-wrap: break-word;
9696
-webkit-font-smoothing: antialiased;
9797
cursor: default;
9898
-webkit-user-select: none;

0 commit comments

Comments
 (0)