Skip to content

feat(InputFields & Counter): use inputBorder token in border#1337

Merged
atabel merged 15 commits into
masterfrom
iceballos-input-border
May 6, 2025
Merged

feat(InputFields & Counter): use inputBorder token in border#1337
atabel merged 15 commits into
masterfrom
iceballos-input-border

Conversation

@yceballost
Copy link
Copy Markdown
Contributor

@yceballost yceballost commented Apr 1, 2025

Important

All OBs are communicated

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2025

Size stats

master this branch diff
Total JS 12.4 MB 12.4 MB +890 B
JS without icons 2.12 MB 2.12 MB +890 B
Lib overhead 77.3 kB 77.5 kB +186 B
Lib overhead (gzip) 17.6 kB 17.6 kB +38 B

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2025

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2025

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-gs7nhanob-flows-projects-65bb050e.vercel.app

Built with commit 891ac24.
This pull request is being automatically deployed with vercel-action

@yceballost yceballost marked this pull request as ready for review April 1, 2025 21:26
@yceballost yceballost requested review from atabel and aweell April 1, 2025 21:27
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2025

Screenshot tests report

✔️ All passing

@yceballost yceballost changed the title feat(input fields): use inputBorder token in border feat(InputFields & Counter): use inputBorder token in border Apr 1, 2025
}),
{
background: 'none',
outline: 0,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

would be nice have screenshots for focus?

@yceballost yceballost removed the request for review from atabel April 2, 2025 17:17
@yceballost yceballost requested a review from atabel April 2, 2025 18:12
Comment thread src/pin-field.tsx
Comment thread src/pin-field.tsx
lineHeight: styles.pinInputLineHeight,
fontSize: styles.pinInputLineHeight,
height: styles.pinInputLineHeight,
height: `calc(${styles.pinInputLineHeight} * 3 - 2px)`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you explain this calc?

Copy link
Copy Markdown
Contributor Author

@yceballost yceballost Apr 24, 2025

Choose a reason for hiding this comment

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

we use the same calc in css width

width: `calc(${pinInputLineHeight} * 3)`,

And substract 2px to ensure the box measures have the same height and width

Without -2px
image

without -2px and different font size
image

Comment thread src/text-field-components.css.ts Outdated
export const field = style([
sprinkles({
overflow: 'hidden',
border: 'regular',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

instead of setting border to regular and overriding the borderColor, I'd just set the border. Alternatively, we could define a new border type for inputs in sprinkles

Copy link
Copy Markdown
Contributor Author

@yceballost yceballost Apr 24, 2025

Choose a reason for hiding this comment

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

I included a new type in sprinkles to manage input borders from one side

@atabel atabel enabled auto-merge May 6, 2025 12:45
@atabel atabel added this pull request to the merge queue May 6, 2025
Merged via the queue into master with commit c8538a2 May 6, 2025
11 checks passed
@atabel atabel deleted the iceballos-input-border branch May 6, 2025 13:06
tuentisre pushed a commit that referenced this pull request May 6, 2025
# [16.24.0](v16.23.0...v16.24.0) (2025-05-06)

### Features

* **Accordion, List, Select:** Chevron normalization ([#1345](#1345)) ([c24ed06](c24ed06))
* **InputFields & Counter:** use inputBorder token in border ([#1337](#1337)) ([c8538a2](c8538a2))
* **TextLink:** add underline to textLink ([#1343](#1343)) ([b90ad61](b90ad61))
@tuentisre
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 16.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants