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

CSS properties are overriden - causing spotlight overlay to not display #70

Open
msrcodes opened this issue Jul 2, 2021 · 0 comments
Open

Comments

@msrcodes
Copy link

msrcodes commented Jul 2, 2021

Brief bug description

When using the latest version of Kontent Smart Link (v2.1.0), the :host CSS properties will be overidden by any higher-order CSS selector. For example, Tailwind CSS's Preflight sets all border width's to 0. This causes the :host border-width to be ignored, and the border width to be set to 0. This causes the spotlight overlay to be hidden.

image
image

This can be remediated by flagging the appropriate properties as !important:

image
image

Repro steps

  1. Create a page using a higher-order CSS selector (such as those used by Tailwind CSS's Preflight)
  2. Observe - no spotlight overlay will show
  3. Add the !important flag
  4. Observe - overlay will show

Expected behavior

The overlay should display.

image

Test environment

  • Platform/OS: Windows 10
  • Browser: Firefox
  • Version: 89.0.2 (64-bit)

Additional context

Add any other context about the problem here.

Screenshots

Add links to screenshots, if possible.

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