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

How to unset margin on <color-picker> element? #323

Open
harvanchik opened this issue Dec 3, 2022 · 0 comments
Open

How to unset margin on <color-picker> element? #323

harvanchik opened this issue Dec 3, 2022 · 0 comments

Comments

@harvanchik
Copy link

The <color-picker> element has a right margin on it which moves my other elements over when the picker is opened.
https://i.gyazo.com/ad6214625a1c0934621e9f54eafb998d.mp4

I tried added css styles to set the margin to 0, but that did not work.

color-picker {
  margin: 0;
}

Then I tried setting the margin after the view is initiatized, but that also didn't work.

ngAfterViewInit() {
  (document.querySelector('color-picker') as HTMLElement).style.margin = '0';
}
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

1 participant