-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25821 from JKobrynski/migrateTextUnderlineToTypeS…
…cript [No QA] [TS migration] Migrate textUnderline style to TypeScript
- Loading branch information
Showing
5 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import TextUnderlineStyles from './types'; | ||
|
||
// following styles are not supported | ||
const textUnderline: TextUnderlineStyles = { | ||
textUnderlinePositionUnder: {}, | ||
textDecorationSkipInkNone: {}, | ||
}; | ||
|
||
export default textUnderline; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import TextUnderlineStyles from './types'; | ||
|
||
const textUnderline: TextUnderlineStyles = { | ||
textUnderlinePositionUnder: { | ||
textUnderlinePosition: 'under', | ||
}, | ||
textDecorationSkipInkNone: { | ||
textDecorationSkipInk: 'none', | ||
}, | ||
}; | ||
|
||
export default textUnderline; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {CSSProperties} from 'react'; | ||
|
||
type TextUnderlineStyles = { | ||
textUnderlinePositionUnder: Pick<CSSProperties, 'textUnderlinePosition'>; | ||
textDecorationSkipInkNone: Pick<CSSProperties, 'textDecorationSkipInk'>; | ||
}; | ||
|
||
export default TextUnderlineStyles; |