FAB iOS Fix and E2E Link Fix#2366
Conversation
|
Just pulled in the latest changes and confirmed that the iOS FAB is no longer broken.
For reference here's a screen recording of the iOS Button test page from a week ago vs. just now ios_button_nov22.mp4ios_button_nov30.mp4 |
|
@lyzhan7 FAB on Android adopts 'primary' (or 'ascent') as its appearance by default and looks as follows - (In fact they have the exact same color token for background color 'brandBackground'!) These color tokens are not present for iOS at the moment and that is why FAB appears like a subtle button without a background. This will automatically be fixed when tokenization is done for iOS. |
I thought this revert brought FAB on iOS back to what it looked like before 😅. I don't think it's a sufficient fix for us to say FAB will be fixed when it's tokenized. I'm sorry if that was unclear earlier |
|
Also just wanted to note another issue with using the Android tokens for iOS - the iOS shadow won't work as expected. iOS doesn't use elevation like android does. The 'shadowToken: t.shadows.shadow8" line is needed to get the iOS shadows on FAB, and it's been deleted now. I think for this we need to have a broader discussion on what to do - I think it might be a good time to invest making the Shadow component work for Android as well. |
|
Reopening PR to revert FAB on iOS. |

Platforms Impacted
Description of changes
FAB for iOS was not rendering properly after the tokenization PR #2337
This was due to lack of proper token values being present after FAB completion. As a temporary fix until FAB iOS is tokenized, have changed the structure to a single tokens file for both iOS and Android.
Repo Links tests was failing after E2E shifted to its own package PR #2345
Link - https://github.com/microsoft/fluentui-react-native/tree/main/apps/fluent-tester/src/E2E#authoring-e2e-test shifted to https://github.com/microsoft/fluentui-react-native/tree/main/apps/E2E#authoring-e2e-test
Verification
Pull request checklist
This PR has considered (when applicable):