RocketChat / RocketChat/Rocket.Chat.ReactNative

Separators don't render correctly if font size a11y is decreased

Open
#4,806 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🍭 good first issue 🐛 bug
Dominant language
TypeScript
Stars
2.4k
Forks
1.5k
Avg merge
1d 18h
Merged PRs (30d)
90

Description

Overview

It happens mostly on Android.

Check how some separators aren’t getting rendered below.
image
image

That happens because StyleSheet.hairlineWidth calculates its value based on PixelRatio.

To be done
  • Stop using StyleSheet.hairlineWidth and apply 1 instead
  • Evaluate all places impacted by this and apply the new value

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the project for uses of StyleSheet.hairlineWidth, then inspect the affected separator components and reproduce the issue on Android with a reduced accessibility font size. Replace the impacted value as specified and verify that all separators render correctly across the affected locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.