8000 CSS properties are overriden - causing spotlight overlay to not display · Issue #70 · kontent-ai/smart-link · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
CSS properties are overriden - causing spotlight overlay to not display #70
Open
@msrcodes

Description

@msrcodes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0