Skip to content

Commit

Permalink
feat(preset-mini): add text-pretty css property (#3378)
Browse files Browse the repository at this point in the history
  • Loading branch information
quecot committed Nov 27, 2023
1 parent 6aa1578 commit fe3fa73
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
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const textWraps: Rule[] = [
['text-wrap', { 'text-wrap': 'wrap' }],
['text-nowrap', { 'text-wrap': 'nowrap' }],
['text-balance', { 'text-wrap': 'balance' }],
['text-pretty', { 'text-wrap': 'pretty' }],
]

export const textOverflows: Rule[] = [
Expand Down
1 change: 1 addition & 0 deletions test/assets/output/preset-mini-targets.css
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ unocss .scope-\[unocss\]\:block{display:block;}
.text-wrap{text-wrap:wrap;}
.text-nowrap{text-wrap:nowrap;}
.text-balance{text-wrap:balance;}
.text-pretty{text-wrap:pretty;}
@container (min-width: 10.5rem){
.\@\[10\.5rem\]-text-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity));}
}
Expand Down
1 change: 1 addition & 0 deletions test/assets/preset-mini-targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ export const presetMiniTargets: string[] = [
'text-wrap',
'text-nowrap',
'text-balance',
'text-pretty',
'case-upper', // !
'case-normal', // !
'case-inherit', // !
Expand Down

0 comments on commit fe3fa73

Please sign in to comment.