Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(component): text input #3946

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

feat(component): text input #3946

wants to merge 25 commits into from

Conversation

leagrdv
Copy link
Contributor

@leagrdv leagrdv commented Nov 8, 2024

No description provided.

@leagrdv leagrdv linked an issue Nov 8, 2024 that may be closed by this pull request
5 tasks
Copy link

changeset-bot bot commented Nov 8, 2024

🦋 Changeset detected

Latest commit: 5d5b86a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@swisspost/design-system-documentation Patch
@swisspost/design-system-styles Major
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components Major
@swisspost/internet-header Patch
@swisspost/design-system-intranet-header-workspace Patch
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles-primeng-workspace Patch
@swisspost/design-system-intranet-header Major
@swisspost/design-system-styles-primeng Major
@swisspost/design-system-components-react Major
@swisspost/design-system-components-angular Major
@swisspost/design-system-intranet-header-showcase Patch
@swisspost/design-system-tokens Major
@swisspost/design-system-icons Major
@swisspost/design-system-migrations Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Nov 8, 2024

Related Previews

@leagrdv leagrdv marked this pull request as ready for review November 11, 2024 14:48
@leagrdv leagrdv requested review from a team as code owners November 11, 2024 14:48
Copy link
Contributor

@alizedebray alizedebray left a comment

Choose a reason for hiding this comment

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

Nice job 👍
Can you just check the animation with the design team? We don't have real requirements for animations right now but for a short amount of time the label appears on top of the placeholder and it feels strange.
Otherwise everything looks fine and is a lot cleaner, thanks!

.changeset/metal-pens-explode.md Outdated Show resolved Hide resolved
.changeset/metal-pens-explode.md Outdated Show resolved Hide resolved
},
},
args: {
label: 'Label',
floatingLabel: false,
floatingLabel: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please check if we still need the non-floating label and if so if it should be tokenized?

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be good to refactor the file structure to match with Figma as we did with other components.
The text input should have its own file and contain the styles of its floating label.

Copy link
Contributor

Choose a reason for hiding this comment

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

I created a separate ticket for that: #4000

border-color: forms.$input-color;
background-color: forms.$input-bg;
border-color: tokens.get('input-color-enabled-border');
background-color: tokens.get('input-color-enabled-bg');
}

&[type='file'] {
Copy link
Contributor

Choose a reason for hiding this comment

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

The value is not correctly aligned for the file input.

Copy link
Contributor

Choose a reason for hiding this comment

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

I created a separate ticket for that: #4001

@gfellerph gfellerph removed their request for review November 15, 2024 13:53
Copy link

sonarcloud bot commented Nov 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[component]: Text input
3 participants