-
Notifications
You must be signed in to change notification settings - Fork 1
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
Encapsulation #4
Comments
We are using IDs, that gives us some extreme specificity in the injected CSS. The primary problem is that the right/top offsets are off. Probably a |
Should switch to bottom offset, most people have a nav menu in the top right.
|
ok got it |
It'll be good enough for now. |
I've seen live chat implemented quite nicely via The library doesn't need to change much, we just need to create an
That successfully creates an That enables us to keep our public method. Unfortunately it does mean we need to include the jsearch lib as an external script but it could be worse. Though we could do it with a |
it's a real pity that shadow DOM isn't better supported. so you've done this now? judging from 'jsearch.iframe.js' |
No. I mean that code works but I still need to think about styling the iframe. I'm probably going to sleep soon but you're welcome to have a look at it if you're having a late night. Otherwise we'll just crack it tomorrow. |
Styling is okay, but we need a means to adjust the sizing of the iframe when the search bar opens and when the results are displayed. It's not difficult, we just need to decide on the proper event to trigger the resize. I'm thinking:
|
Now that we have the library working generically, we need to make sure that a user's stylesheets don't interfere with how the search UI is displayed.
z-index
is one issue, easy to fix, but of special concern is the way in which the input field can be totally screwed up.While we could use
!important
along with every CSS property known to man set to norms, it would make better sense to either:I'd prefer the first option, but then the user needs to include a polyfill for WebComponents for Safari/IE, plus there are probably going to be complications accessing the top document.
I'm open to suggestions.
The text was updated successfully, but these errors were encountered: