Skip to content

feat(design): convert accordion styles from px to rem - #4704

Merged
xelaint merged 1 commit into
developfrom
feat/accordion-px-to-rem
Sep 21, 2026
Merged

xelaint merged 1 commit into
developfrom
feat/accordion-px-to-rem

Conversation

@xelaint

@xelaint xelaint commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

Current behavior

Part of: #4684

New behavior

Breaking change?

  • Yes
  • No

Additional context

@xelaint
xelaint requested a review from a team as a code owner September 18, 2026 14:24
@xelaint xelaint added the package: design @daffodil/design label Sep 18, 2026

@damienwebdev damienwebdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm


@include daff-dark-mode($mode) {
border-top: 1px solid daff-color($neutral, 80);
border-top: thin solid daff-color($neutral, 80);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

side-comment, do we need a linting rule for this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specifically for 1px -> thin for borders, or rem in general?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1px -> thin. I was a little curious about the choice here, but I figured there was good reason for it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically for 1px borders, thin is better because

On certain screens with specific Device Pixel Ratios (DPR) or when users zoom in/out, a 1px border can sometimes snap to 0px or become uneven across different sides of a box. Because thin gives the browser the authority to resolve the rendering engine's calculation, it handles high-density pixel snapping with fewer visual layout bugs

@xelaint
xelaint merged commit 3077082 into develop Sep 21, 2026
16 checks passed
@gray-bot gray-bot mentioned this pull request Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: design @daffodil/design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants