-
Notifications
You must be signed in to change notification settings - Fork 168
Button android ripple #2103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Button android ripple #2103
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5abe49f
add android ripple on button
895ab38
Change files
dcf7d92
ripple\fixes on FAB, Button
121b5af
Change files
3fecd69
Merge branch 'microsoft:main' into button-android-ripple
ayush547 0b8aadb
make fab collapsible / fix fab bugs
43c7cbc
Change files
7443651
Merge branch 'microsoft:main' into fab-update
ayush547 42d152f
Renamed FAB showChildren to showContent
6842dbe
Change files
9816337
Merge branch 'microsoft:main' into fab-update
ayush547 769f7b3
Revert "Change files"
acde4eb
Merge branch 'fab-update' into button-android-ripple
289f4c6
Resolved comments
eaa33cc
Merged after resolving
295df7d
Resolve conflicts
5093cdd
Change files
rurikoaraki f2c3230
Merge branch 'microsoft:main' into button-android-ripple
ayush547 da9a082
Merge branch 'microsoft:main' into button-android-ripple
ayush547 3a71dd8
Merge branch 'microsoft:main' into button-android-ripple
ayush547 3a88910
Ripple changes and tests updation
23dcc69
Resolved comments on ripple
fb4ceb9
Change files
6d998da
Revert "Change files"
61b7a5c
Merge Pressable changes
ayush547 853bacf
Ripple changes for RN Pressable
ayush547 0755069
Change files
ayush547 093454d
Merge branch 'button-android-ripple' of https://github.com/ayush547/f…
ayush547 697d180
Resolved comments
ayush547 fe2e26c
Resolve comments
ayush547 66053e4
Typo Fix
ayush547 24127cf
Merge branch 'microsoft:main' into button-android-ripple
ayush547 8817b14
Merge branch 'microsoft:main' into button-android-ripple
ayush547 e069524
Merge branch 'microsoft:main' into button-android-ripple
ayush547 4a47854
Final Ripple Changes
ayush547 fdc02a5
Change files
ayush547 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-native-avatar-3662454b-777e-4f5a-a9fb-925506c75279.json
This file contains hidden or 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,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "Typo Fix", | ||
| "packageName": "@fluentui-react-native/avatar", | ||
| "email": "ayushsinghs@yahoo.in", | ||
| "dependentChangeType": "none" | ||
| } |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-native-button-6a251b28-f044-4844-b8ba-d6c1847178d9.json
This file contains hidden or 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,7 @@ | ||
| { | ||
| "type": "minor", | ||
| "comment": "Ripple/Fix on FAB", | ||
| "packageName": "@fluentui-react-native/button", | ||
| "email": "ruaraki@microsoft.com", | ||
| "dependentChangeType": "patch" | ||
| } |
7 changes: 7 additions & 0 deletions
7
...@fluentui-react-native-experimental-menu-button-e367c22f-dc11-4398-9c6f-f2bd3641e4e1.json
This file contains hidden or 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,7 @@ | ||
| { | ||
| "type": "patch", | ||
| "comment": "Ripple changes for RN Pressable", | ||
| "packageName": "@fluentui-react-native/experimental-menu-button", | ||
| "email": "ayushsinghs@yahoo.in", | ||
| "dependentChangeType": "patch" | ||
| } |
7 changes: 7 additions & 0 deletions
7
...@fluentui-react-native-experimental-radio-group-f88773ec-dbe0-49d2-a35e-e72f79f5046c.json
This file contains hidden or 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,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "Typo Fix", | ||
| "packageName": "@fluentui-react-native/experimental-radio-group", | ||
| "email": "ayushsinghs@yahoo.in", | ||
| "dependentChangeType": "none" | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,57 @@ | ||
| import { memoize } from '@fluentui-react-native/framework'; | ||
| import { ViewStyle } from 'react-native'; | ||
|
|
||
| /** | ||
| * React Native's Pressable does not support curved edges. | ||
| * It needs to be wrapped inside another view and have border set there. | ||
| * This function extracts styles that should be applied on the outer view. | ||
| * | ||
| * @param style Styling that is to be applied on the component | ||
| * @returns Array containing split styles that are to be applied on the inner and outer views | ||
| */ | ||
|
|
||
| export const extractOuterStylePropsAndroid = memoize((style: ViewStyle = {}): [outerStyleProps: ViewStyle, innerStyleProps: ViewStyle] => { | ||
| const { | ||
| margin, | ||
| marginTop, | ||
| marginBottom, | ||
| marginLeft, | ||
| marginRight, | ||
| marginStart, | ||
| marginEnd, | ||
| marginVertical, | ||
| marginHorizontal, | ||
| start, | ||
| end, | ||
| left, | ||
| right, | ||
| top, | ||
| bottom, | ||
| display, | ||
| opacity, | ||
| ...restOfProps | ||
| } = style; | ||
|
|
||
| return [ | ||
| { | ||
| margin, | ||
| marginTop, | ||
| marginBottom, | ||
| marginLeft, | ||
| marginRight, | ||
| marginStart, | ||
| marginEnd, | ||
| marginVertical, | ||
| marginHorizontal, | ||
| start, | ||
| end, | ||
| left, | ||
| right, | ||
| top, | ||
| bottom, | ||
| display, | ||
| opacity, | ||
| }, | ||
| { borderWidth: 0, ...restOfProps }, | ||
ayush547 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ]; | ||
| }); | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.