ni / ni/nimble

Consider using scrollbar-gutter where useful when available

Open
#1,271 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tech debt
Dominant language
TypeScript
Stars
39
Forks
14
Avg merge
1d 16h
Merged PRs (30d)
13

Description

🧹 Tech Debt

The scrollbar-gutter CSS feature allows you to reserve space in a component for a scrollbar. It's aware of system-specific details about scrollbars such as scrollbar size and if the scrollbars are overlay or classic.

Unfortunately currently blocked on Safari support. Caniuse

When available we should be able to use it to remove the complexity of scrollbar tracking in the nimble-text-area:

https://github.com/ni/nimble/blob/14402b0d2e2a8a56454f79aa971324bf96dea5fe/packages/nimble-components/src/text-area/index.ts#L123-L126

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

Check current Safari support for scrollbar-gutter first, then inspect packages/nimble-components/src/text-area/index.ts around lines 123-126. Compare the existing scrollbar-tracking complexity with what scrollbar-gutter can replace, and confirm the change preserves the text area's scrollbar layout when the feature is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
frontend
Issue type
Refactor
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.