Skip to content

Commit

Permalink
chore: remove float logical values warning (#11)
Browse files Browse the repository at this point in the history
* chore: remove float logical values warning

* test: remove float
  • Loading branch information
MadCcc authored Mar 16, 2022
1 parent 52210f3 commit b7fcfa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export const styleValidate = (
}
}
return;
case 'float':
case 'clear':
case 'textAlign':
if (value === 'left' || value === 'right') {
Expand Down
2 changes: 1 addition & 1 deletion tests/style.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('style warning', () => {
}),
);

['float', 'clear', 'textAlign'].forEach((prop) =>
['clear', 'textAlign'].forEach((prop) =>
it(`${prop} with left or right`, () => {
const genStyle = (): CSSObject => ({
[prop]: 'left',
Expand Down

0 comments on commit b7fcfa8

Please sign in to comment.