[Consumer UI Refresh] Create a Floating Action Button component by adding a fixed position icon
See original GitHub issueIf you haven’t already, check out our contributing guidelines for onboarding!
- Using the resource provided add a fixed position touchable icon component called
FAB.js
in/components
- The FAB must always be the same distance from the RIGHT EDGE of the sidebar area regardless of screen width
- We are not yet using this element so it should remain hidden for now but easily testable (use a prop
isHidden
for now). - It must use a
Pressable
and take anonPress
callback - It must also accept a prop of
isActive
and display an alternate view when this prop istrue
- When moving from the not active to active state the SVG can be rotated via a transform and the fill color set to gray
- No external dependencies are allowed
- Here is the exact location where it should sit at both wide screen views and small screen widths and the two states of the FAB shown
Asset: plus.svg.zip
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
[Consumer UI Refresh] Create a Floating Action Button ...
Using the resource provided add a fixed position touchable icon component called FAB.js in /components The FAB must always be the same ...
Read more >Add a Floating Action Button - Android Developers
A floating action button (FAB) is a circular button that triggers the primary action in your app's UI. This page shows you how...
Read more >The floating action button in SaaS: your best guide in 2022
A floating action button is a circular icon button that hovers over content to promote a primary action to the user with one...
Read more >ion-fab-button - Ionic Framework
Floating Action Buttons (FABs) represent the primary action in an app. The icons are circular and, when pressed, the button may open more...
Read more >How to Create a Floating Action Button with Pure CSS ...
So we add the CSS rules, set the position fixed, 50px from bottom and 50px from the right. Add the cursor:pointer so it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
PR created. https://github.com/Expensify/Expensify.cash/pull/1233
We can chat more in the reviews when you are ready with the PR. Thanks!