Skip to content

Commit 13d7eef

Browse files
committed
Add break-anywhere utility
1 parent 9736506 commit 13d7eef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/tailwindcss/src/utilities.test.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -9210,13 +9210,17 @@ test('text-wrap', async () => {
92109210
})
92119211

92129212
test('overflow-wrap', async () => {
9213-
expect(await run(['break-normal', 'break-words', 'break-all', 'break-keep']))
9213+
expect(await run(['break-normal', 'break-words', 'break-all', 'break-keep', 'break-anywhere']))
92149214
.toMatchInlineSnapshot(`
92159215
".break-normal {
92169216
overflow-wrap: normal;
92179217
word-break: normal;
92189218
}
92199219
9220+
.break-anywhere {
9221+
overflow-wrap: anywhere;
9222+
}
9223+
92209224
.break-words {
92219225
overflow-wrap: break-word;
92229226
}

packages/tailwindcss/src/utilities.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,7 @@ export function createUtilities(theme: Theme) {
19731973
staticUtility('break-words', [['overflow-wrap', 'break-word']])
19741974
staticUtility('break-all', [['word-break', 'break-all']])
19751975
staticUtility('break-keep', [['word-break', 'keep-all']])
1976+
staticUtility('break-anywhere', [['overflow-wrap', 'anywhere']])
19761977

19771978
{
19781979
// border-radius

0 commit comments

Comments
 (0)