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

🐛 - fix: fixed the overlapping of the icon #142

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

Xaohs
Copy link
Contributor

@Xaohs Xaohs commented Oct 4, 2024

No description provided.

@Xaohs Xaohs requested a review from svenvandescheur October 4, 2024 14:51
@Xaohs Xaohs marked this pull request as ready for review October 4, 2024 14:52
Copy link
Collaborator

@svenvandescheur svenvandescheur left a comment

Choose a reason for hiding this comment

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

Pleas check the Chromatic results, it seems that this change breaks some stuff. Please not that the spacing should only be applied if an icon is set.

@Xaohs Xaohs requested a review from svenvandescheur October 10, 2024 14:59
@@ -8,6 +8,11 @@
width: 100%;
}

.mykn-stackctx:has(.mykn-icon) .mykn-input,
.mykn-stackctx:has(.mykn-icon) .mykn-select {
padding-right: 30px;
Copy link
Collaborator

@svenvandescheur svenvandescheur Oct 11, 2024

Choose a reason for hiding this comment

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

This looks like a better approach.

can we however:

  • Move this to stackctx.scss so a widget directly rendered without Form(Control) gets the fix as well?
  • Use padding-inline-end instead of padding-right?
  • Add box-sizing: border-box; to .mykn-stackctx to make sure the padding has as little effect on the width as possible?

@svenvandescheur svenvandescheur merged commit 2450074 into main Oct 18, 2024
7 checks passed
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.

2 participants