-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING-CHANGE(web-react): Remove isUnderlined prop from Link component
- removing deprecation - solving #DS-1509
- Loading branch information
1 parent
72f26f2
commit 183eab7
Showing
12 changed files
with
34 additions
and
89 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
23 changes: 13 additions & 10 deletions
23
packages/web-react/src/components/Link/__tests__/linkPropsDataProvider.ts
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
const linkPropsDataProvider = [ | ||
// color, isUnderlined, isDisabled, expectedClassName | ||
['primary', false, false, 'link-primary'], | ||
['secondary', false, false, 'link-secondary'], | ||
['tertiary', false, false, 'link-tertiary'], | ||
['primary', true, false, 'link-primary link-underlined'], | ||
['secondary', true, false, 'link-secondary link-underlined'], | ||
['tertiary', true, false, 'link-tertiary link-underlined'], | ||
['primary', true, true, 'link-primary link-disabled link-underlined'], | ||
['secondary', true, true, 'link-secondary link-disabled link-underlined'], | ||
['tertiary', true, true, 'link-tertiary link-disabled link-underlined'], | ||
// color, underlined, isDisabled, expectedClassName | ||
['primary', undefined, false, 'link-primary'], | ||
['secondary', undefined, false, 'link-secondary'], | ||
['tertiary', undefined, false, 'link-tertiary'], | ||
['primary', 'hover', false, 'link-primary'], | ||
['secondary', 'hover', false, 'link-secondary'], | ||
['tertiary', 'hover', false, 'link-tertiary'], | ||
['primary', 'hover', true, 'link-primary link-disabled'], | ||
['secondary', 'hover', true, 'link-secondary link-disabled'], | ||
['tertiary', 'hover', true, 'link-tertiary link-disabled'], | ||
['primary', 'hover', false, 'link-primary'], | ||
['primary', 'never', false, 'link-primary link-not-underlined'], | ||
['primary', 'always', false, 'link-primary link-underlined'], | ||
]; | ||
|
||
export default linkPropsDataProvider; |
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
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
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
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