Skip to content

Commit

Permalink
Merge pull request #8 from hunghg255/fix-text-algin
Browse files Browse the repository at this point in the history
  • Loading branch information
hunghg255 authored Jul 20, 2024
2 parents eeec2da + a12f3b7 commit 64b52b1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
name: CR

on:
pull_request:
branches: [master]
types: [opened, synchronize, labeled, ready_for_review]
paths-ignore:
- '.github/**'
- '__tests__/**'
- 'art/**'
- 'docs/**'
- '*.md'

permissions: {}
pull_request_target:
types: [labeled, unlabeled]

jobs:
release:
Expand Down
16 changes: 16 additions & 0 deletions __TEST__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,19 @@ test('CSS inset', () => {
],
});
});

test('CSS text-align', () => {
const cssCode1 = `body {
text-align: start;
}`;

expect(CssToTailwind(cssCode1)).toEqual({
code: 'OK',
data: [
{
resultVal: 'text-start',
selectorName: 'body',
},
],
});
});
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,8 @@ const propertyMap: Map<
left: 'text-left',
center: 'text-center',
right: 'text-right',
start: "text-start",
end: "text-end",
justify: 'text-justify',
},
],
Expand Down

0 comments on commit 64b52b1

Please sign in to comment.