Giter VIP home page Giter VIP logo

Comments (4)

AckermannJan avatar AckermannJan commented on May 30, 2024 1

Not that I know of. I got it working for our project. I can add some snippets tomorrow which might help.

from import-map-overrides.

AckermannJan avatar AckermannJan commented on May 30, 2024

As a workaround, you can include a CSS file into your app which is restyling the trigger. For example if you want it in the top right corner. You could also only load this file when in a specific environment to not load it for prod builds.

.imo-trigger {
    top: 0;
}

from import-map-overrides.

robmosca avatar robmosca commented on May 30, 2024

Hi @JanAckermann1337 ,
Thanks for the suggestion. We are indeed loading it only in our development environment.
I tried overriding the styles but couldn't make it work. Not sure why (is it possible that the styles are scoped to the element through Shadow DOM?)
Will try to give it another go.

from import-map-overrides.

robmosca avatar robmosca commented on May 30, 2024

I've looked into it and while adding CSS works on version 2.2.0, it won't work in version 3.0.0. It's actually even mentioned in the release notes... (I realized it later) 😅
Screenshot 2023-04-26 at 23 39 46
I could override that with something like this:

  <script>
    document
      .querySelector('import-map-overrides-full')
      .shadowRoot.querySelector('.imo-trigger')
      .setAttribute('style', 'left: 0;')
  </script>

but it is a really hacky solution and I would prefer to introduce a cleaner solution with an attribute like position, for example.

from import-map-overrides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.