Skip to content

Commit 77307f5

Browse files
reininkadamwathan
andauthored
Resolve overflow-clip naming collision issue (#5630)
* Rename `overflow-clip` to `text-clip`, add `text-ellipsis`, deprecate `overflow-ellipsis` Co-Authored-By: Adam Wathan <[email protected]> * Add `overflow-clip` utilities Co-Authored-By: Adam Wathan <[email protected]> Co-authored-by: Adam Wathan <[email protected]>
1 parent 2fb33ee commit 77307f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/corePlugins.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1131,12 +1131,15 @@ export default {
11311131
addUtilities({
11321132
'.overflow-auto': { overflow: 'auto' },
11331133
'.overflow-hidden': { overflow: 'hidden' },
1134+
'.overflow-clip': { overflow: 'clip' },
11341135
'.overflow-visible': { overflow: 'visible' },
11351136
'.overflow-scroll': { overflow: 'scroll' },
11361137
'.overflow-x-auto': { 'overflow-x': 'auto' },
11371138
'.overflow-y-auto': { 'overflow-y': 'auto' },
11381139
'.overflow-x-hidden': { 'overflow-x': 'hidden' },
11391140
'.overflow-y-hidden': { 'overflow-y': 'hidden' },
1141+
'.overflow-x-clip': { 'overflow-x': 'clip' },
1142+
'.overflow-y-clip': { 'overflow-y': 'clip' },
11401143
'.overflow-x-visible': { 'overflow-x': 'visible' },
11411144
'.overflow-y-visible': { 'overflow-y': 'visible' },
11421145
'.overflow-x-scroll': { 'overflow-x': 'scroll' },
@@ -1168,8 +1171,9 @@ export default {
11681171
textOverflow: ({ addUtilities }) => {
11691172
addUtilities({
11701173
'.truncate': { overflow: 'hidden', 'text-overflow': 'ellipsis', 'white-space': 'nowrap' },
1171-
'.overflow-ellipsis': { 'text-overflow': 'ellipsis' },
1172-
'.overflow-clip': { 'text-overflow': 'clip' },
1174+
'.overflow-ellipsis': { 'text-overflow': 'ellipsis' }, // Deprecated
1175+
'.text-ellipsis': { 'text-overflow': 'ellipsis' },
1176+
'.text-clip': { 'text-overflow': 'clip' },
11731177
})
11741178
},
11751179

0 commit comments

Comments
 (0)