Skip to content

insert plugin css files before custom.css file#2784

Merged
yadvr merged 1 commit into
apache:4.11from
ernjvr:custom_css_placement
Aug 8, 2018
Merged

insert plugin css files before custom.css file#2784
yadvr merged 1 commit into
apache:4.11from
ernjvr:custom_css_placement

Conversation

@ernjvr
Copy link
Copy Markdown
Contributor

@ernjvr ernjvr commented Aug 2, 2018

Description

In the index.html file, the reference to the custom.css file is made on the last line of the <head> tag.
The plugins.js file appends a list of CSS files to the <head> tag dynamically, consequently placing them after the custom.css file and overriding it.

Expected Behaviour:
The plugins.js file must insert the list of CSS files before the custom.css file so that it does not get overridden.

Actual Behaviour:
The plugins.js file appends a list of CSS files to the <head> tag dynamically, consequently placing them after the custom.css file and overriding it.

To Reproduce:
Log in to the Cloudstack UI using your favourite browser.
Use your browser's development tool to view the HTML elements of the index.html loaded in memory.
Expand the <head> element and review the list of CSS <link> elements.
Notice that the list of module and plugins CSS files is appended after the custom.css file.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

GitHub Issue/PRs

Screenshots (if appropriate):

image

How Has This Been Tested?

Manually (See screenshot above)
Log in to the Cloudstack UI using your favourite browser.
Use your browser's development tool to view the HTML elements of the index.html loaded in memory.
Expand the <head> element and review the list of CSS <link> elements.
Notice that the list of module and plugins CSS files is now inserted before the custom.css file.

Environment:
CloudStack version 4.11, KVM hypervisor.

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
    Testing
  • I have added tests to cover my changes.
  • All relevant new and existing integration tests have passed.
  • A full integration testsuite with all test that can run on my environment has passed.

Copy link
Copy Markdown
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

@yadvr yadvr added this to the 4.11.2.0 milestone Aug 8, 2018
@yadvr yadvr merged commit d8b3a90 into apache:4.11 Aug 8, 2018
@ernjvr ernjvr deleted the custom_css_placement branch August 16, 2018 13:40
Tonitzpp pushed a commit to scclouds/cloudstack that referenced this pull request Dec 18, 2025
Atualizar _labels_ automaticamente ao atualizar entre versões

Closes apache#2784 and apache#2913

See merge request scclouds/scclouds!1289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants