Comments (4)
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.
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.
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.
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) 😅
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)
- Infer same filename with port number HOT 2
- the panel show no overrides module, where is my module? how to debugger it ? HOT 4
- Using import-map-overrides for making an 'in-browser' IDE. HOT 1
- Confusing reload icon after adding an override HOT 6
- IE 11 broken HOT 4
- Overrides triggers cross-origin issue when loaded into iframe (MS Teams) HOT 1
- buttons in ui can get "bad" styling HOT 1
- Failed to execute `attachShadow` on `Element` in 3.0.0 HOT 10
- Server-side single maps - cookie should specify a path HOT 1
- Bug introduced by terser HOT 1
- Is there a way to disable Auto Dev Lib Override? HOT 2
- how can i create E2E cypress tests? HOT 4
- Hi, I have this error in the console : Shadow root cannot be created on a host which already hosts a shadow tree. HOT 7
- Is it possible to support SystemJS and native imports at the same time? HOT 1
- Import maps blocked in Safari HOT 2
- cross-origin when trying to embed the single-spa app, with devtools enabled, in an iframe HOT 1
- Relative imports in an import map accessed from a remote JSON file should be resolved w.r.t. the domain of the remote, not the domain of the host HOT 3
- Attribute trigger-position does not have any effect HOT 3
- An import map is added after module script load was triggered. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from import-map-overrides.