App icon indicating copy to clipboard operation
App copied to clipboard

Text and icon overlaps in Picker component

Open AlfredoAlc opened this issue 5 years ago • 5 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Press User icon (Settings).
  2. Press Preferences

Expected Result:

Down Arrow should be on the right of the text in the Picker component.

Actual Result:

The text hovers below the Down Arrow Icon.

Workaround:

Yes, the user can use Expensify without this being fixed.

Platform:

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Notes/Photos/Videos:

Simulator Screen Shot - iPhone 12 - 2021-08-05 at 11 51 05

View all open jobs on Upwork

AlfredoAlc avatar Aug 05 '21 19:08 AlfredoAlc

Triggered auto assignment to @SofiedeVreese (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Aug 05 '21 19:08 MelvinBot

Proposal Add the corresponding padding to the picker style. Since is a RNPickerSelect, the Icon prop renders with {position: 'relative', right: 0}, this causes to overlap the icon and the text if the padding is not set correctly.

https://github.com/Expensify/App/blob/28add7719fce12d1f059ccce5fe3e67573162038/src/styles/styles.js#L287-L331

Use a padding of 40 in paddingRight for inputIOS, inputWeb and inputAndroid, which would be determined by a 12 padding at the end(which is what is already used) another 12 padding to separate the text from the icon and a 16 padding which is the size of the icon used.

AlfredoAlc avatar Aug 05 '21 19:08 AlfredoAlc

Are you sure that you are on the latest code? I see this image

parasharrajat avatar Aug 05 '21 19:08 parasharrajat

Yes, I see it now the same as you.

My bad.. I didn't had the latest code.

AlfredoAlc avatar Aug 05 '21 20:08 AlfredoAlc

@SofiedeVreese Be sure to fill out the Contact List!

botify avatar Aug 05 '21 20:08 botify