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

Toggle label alignment problem #116

Open
vinoth2442 opened this issue Jun 3, 2022 · 9 comments
Open

Toggle label alignment problem #116

vinoth2442 opened this issue Jun 3, 2022 · 9 comments

Comments

@vinoth2442
Copy link

Describe the bug
Toggle label positioned on top of the container

Desktop (please complete the following information):

  • OS - iOS
  • Browser - chrome
  • Version - 102
    I have attached screenshot
    Uploading Screen Shot 2022-06-03 at 1.38.59 PM.png…
@vinoth2442 vinoth2442 reopened this Jun 3, 2022
@vinoth2442
Copy link
Author

font: var(--body-1);

Not working inside shadow dom

@eduferfer
Copy link
Collaborator

Hi @vinoth2442 , the screenshot is not showing up, would you mind uploading it again?

@eduferfer
Copy link
Collaborator

font: var(--body-1);

Not working inside shadow dom

Is kor-styles.css loaded correctly?

@vinoth2442
Copy link
Author

font: var(--body-1);

Not working inside shadow dom

Is kor-styles.css loaded correctly?

Yes loaded.
Problem here is need to add font: var(--body-1); inside :host .
It's now present inside body{}

@vinoth2442
Copy link
Author

Hi @vinoth2442 , the screenshot is not showing up, would you mind uploading it again?

Screen Shot 2022-06-03 at 1 38 59 PM

@vinoth2442
Copy link
Author

any update about this issue?

@eduferfer
Copy link
Collaborator

any update about this issue?

Hi, I investigated the issue and it doesn't seem like the --body-1 font declaration is related to that, because even when I force font: unset; it still doesn't get misaligned.

The only way I found to reproduce the issue was applying css align-items: baseline;, so in this case could you please confirm that there is no interfering css inherited by the kor-toggle element?

If you have a link to the repo or code snippet I'd be happy to take a look as well.

image

@vinoth2442
Copy link
Author

Screen Shot 2022-07-08 at 11 51 38 AM

@vinoth2442
Copy link
Author

host([size="body-1"]) {} is empty

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

No branches or pull requests

2 participants