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

Alignment of button content #1220

Open
2 tasks done
trueqbit opened this issue Nov 27, 2023 · 19 comments
Open
2 tasks done

Alignment of button content #1220

trueqbit opened this issue Nov 27, 2023 · 19 comments
Assignees
Labels
150 points enhancement New feature or request Hacktoberfest Suited for Hacktoberfest contributions 🕹️ oss.gg

Comments

@trueqbit
Copy link

trueqbit commented Nov 27, 2023

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Description

The CSS for the wrapper of a button icon explicitly sets width and flex alignment:

.hanko_loadingSpinnerWrapperIcon {
  justify-content: center;
  width: 100%;
  column-gap: 10px;
  margin-left: 10px;
}

This makes it currently impossible to align the button content (icon and text) using the shadow DOM.

Describe your ideal solution

The ideal would probably be a CSS variable or respect alignment of the parent ::part(button).

Workarounds or alternatives

No response

Hanko Version

v0.9.0

Additional Context

The background is that I want to align the content of the button in the same way as usual in our application, also I find it a bit inconsistent with the alignment of the "Continue" button when all form elements are stacked.

@trueqbit trueqbit added the enhancement New feature or request label Nov 27, 2023
@dhananjay-Byte
Copy link

hey @trueqbit i would like to work on this can you please assign me this?

@trueqbit
Copy link
Author

hey @trueqbit i would like to work on this can you please assign me this?

@dhananjay-Byte As I am not a contributor, I cannot change the metadata of a ticket...

@trueqbit
Copy link
Author

hey @trueqbit i would like to work on this can you please assign me this?

@dhananjay-Byte As I am not a contributor, I cannot change the metadata of a ticket...

@dhananjay-Byte Is there any progress here?

@FlxMgdnz
Copy link
Member

@trueqbit I'm assuming that you want to center-align the buttons, right?

@ahadalichowdhury
Copy link

@FlxMgdnz can i contribute on this issue??

@FlxMgdnz FlxMgdnz added Hacktoberfest Suited for Hacktoberfest contributions 🕹️ oss.gg 150 points labels Oct 10, 2024
@akash1812
Copy link

/assign

Copy link

oss-gg bot commented Oct 10, 2024

Assigned to @akash1812! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

@akash1812
Copy link

Can I use the approach where it allows developers to modify alignment through custom css properties?

@awsmdeep
Copy link

/assign

Copy link

oss-gg bot commented Oct 10, 2024

This issue is already assigned to another person. Please find more issues here.

@Anjalisharma3463
Copy link

/assign

Copy link

oss-gg bot commented Oct 10, 2024

This issue is already assigned to another person. Please find more issues here.

@ItsVicky25
Copy link

/assign

Copy link

oss-gg bot commented Oct 10, 2024

This issue is already assigned to another person. Please find more issues here.

@Vishal-Agg1
Copy link

/assign

Copy link

oss-gg bot commented Oct 10, 2024

This issue is already assigned to another person. Please find more issues here.

@thisissushant
Copy link

/assign

Copy link

oss-gg bot commented Oct 10, 2024

This issue is already assigned to another person. Please find more issues here.

@poswalsameer
Copy link

Hi @trueqbit, any screenshot available would help a lot in finding the exact issue that you are facing in the UI. If possible, can you provide screenshots or exactly tell where you found this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
150 points enhancement New feature or request Hacktoberfest Suited for Hacktoberfest contributions 🕹️ oss.gg
Projects
Status: 🆕 New
Development

No branches or pull requests