Skip to content

Commit

Permalink
feat(preset-mini): add break-keep utility (#1687)
Browse files Browse the repository at this point in the history
  • Loading branch information
chu121su12 committed Oct 7, 2022
1 parent 76b883f commit aa43542
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/preset-mini/src/_rules/static.ts
Expand Up @@ -79,6 +79,7 @@ export const breaks: Rule[] = [
['break-normal', { 'overflow-wrap': 'normal', 'word-break': 'normal' }],
['break-words', { 'overflow-wrap': 'break-word' }],
['break-all', { 'word-break': 'break-all' }],
['break-keep', { 'word-break': 'keep-all' }],
]

export const textOverflows: Rule[] = [
Expand Down
1 change: 1 addition & 0 deletions test/__snapshots__/preset-mini.test.ts.snap
Expand Up @@ -709,6 +709,7 @@ div:hover .group-\\\\[div\\\\:hover\\\\]-\\\\[combinator\\\\:test-4\\\\]{combina
.ws-revert{white-space:revert;}
.break-normal{overflow-wrap:normal;word-break:normal;}
.break-words{overflow-wrap:break-word;}
.break-keep{word-break:keep-all;}
.overflow-auto{overflow:auto;}
.overflow-inherit{overflow:inherit;}
.of-x-unset{overflow-x:unset;}
Expand Down
1 change: 1 addition & 0 deletions test/assets/preset-mini-targets.ts
Expand Up @@ -598,6 +598,7 @@ export const presetMiniTargets: string[] = [

'break-normal',
'break-words',
'break-keep',
'text-clip',
'case-upper', // !
'case-normal', // !
Expand Down

0 comments on commit aa43542

Please sign in to comment.