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

"EBI VF 1.3 Global Header" no longer needs VF 1.x CSS #403

Open
khawkins98 opened this issue Jul 24, 2020 · 4 comments
Open

"EBI VF 1.3 Global Header" no longer needs VF 1.x CSS #403

khawkins98 opened this issue Jul 24, 2020 · 4 comments

Comments

@khawkins98
Copy link
Contributor

Enabling the "EBI VF 1.3 Global Header" container also loads the https://dev.ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.3/css/ebi-global.css

This CSS is no longer required for the global header to work, it should be moved to an optional include. Either as a separate optional plugin or component option to enable "EBI VF 1.3 CSS".

This would also have the added benefit of avoiding conflicts between the VF 1.x and VF 2.0 CSS.

@khawkins98 khawkins98 changed the title "EBI VF 1.3 Global Header" no longer needs EBI CSS "EBI VF 1.3 Global Header" no longer needs VF 1.x CSS Jul 24, 2020
@dbushell
Copy link
Collaborator

Hey Ken,

It seems like the footer plugin loads the EBI assets (EBI VF 1.3 Global Footer):

is it safe to remove all three of these includes?

I could add them behind an optional include – will that actually be used anywhere?

@dbushell
Copy link
Collaborator

After testing it seems the EBI Header does not need ebi-global.css but it does need script.js and fonts.css. The EBI Footer container still needs all three. Presumably the Header/Footer are always used in combo?

For now I'll try and avoid it loading if the plugins are enabled but not actually used on the page.

@khawkins98
Copy link
Contributor Author

Just a quick link on how this can work without the the 1.x CSS, which would reduce a lot the 1.x vs. 2.0 clashes.

https://codepen.io/khawkins98/pen/JjXwoKL

If it's not that clear, I can pickup on this next week.


VF component: https://visual-framework.github.io/vf-core/components/ebi-header-footer/

dbushell added a commit that referenced this issue Sep 22, 2020
@dbushell
Copy link
Collaborator

I'll catch up with you on this next week. I've updated the plugin for now to only load the assets where the header/footer is actually used.

dbushell added a commit that referenced this issue Sep 22, 2020
issue #403 conditionally load EBI assets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants