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

Updated twitter-bootstrap library to version 4 #39

Open
wants to merge 10 commits into
base: wicked_1_0
Choose a base branch
from

Conversation

armezit
Copy link

@armezit armezit commented Dec 6, 2018

Updated twitter-bootstrap library to version 4

all required changes made into portal templates according to the migration guideline:
https://getbootstrap.com/docs/4.1/migration/#stable-changes

@CLAassistant
Copy link

CLAassistant commented Dec 6, 2018

CLA assistant check
All committers have signed the CLA.

@DonMartin76
Copy link
Member

Whoa!!! I have been dreading this. Thank you! I will give it a whirl soon and would then merge it.

@armezit
Copy link
Author

armezit commented Dec 6, 2018

@DonMartin76 Thank you for developing this excellent project and hope to be able to contribute more

@DonMartin76 DonMartin76 self-requested a review December 9, 2018 08:35
@DonMartin76 DonMartin76 self-assigned this Dec 9, 2018
Copy link
Member

@DonMartin76 DonMartin76 left a comment

Choose a reason for hiding this comment

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

Amazing work! Thanks! I still see a couple of things which are slightly off:

Gap between menu line and content, color of menu bar

On some pages, there is a gap between the menu bar and the actual content of the page. This does not look good.

Additionally, the color of the menu bar has changed; it is now grey (which I suppose is the default of bootstrap 4). This means we need an update step of the static configuration to add the customized color in the wicked.css file. If you can tell me which classes need to be overwritten, or add a class for the menu bar which we can add to the wicked.css file, then I can do the update step in wicked.portal-env.

image

Default home page is broken

There are a couple of things which are broken with the default "main"/Home page of the static configuration:

  • The wicked logo is not centered
  • The arrows showing the "workflow" are not aligned as before, probably the layouting has changed from Bootstrap 3 to 4

This has to be changed in the wicked.portal-env repository, which is where the standard static configuration is checked in.

image

Panel/Card/Button colors very strong

I guess this is a new default in Bootstrap, and I have to get used to it, but the danger/success/primary/... classes in Bootstrap 4 are a lot stronger than with Bootstrap 3, which had a "pastel" kind of look and feel. The only issue with this is that most other default colors are adapted to this "pastel" look and feel, and this some thing are a bit weird in combination with the new Bootstrap 4 colors:

image

Is there a way to get back the Bootstrap 3 colors? I guess not, but then we should perhaps adapt the default colors in the static configuration.

@armezit
Copy link
Author

armezit commented Dec 9, 2018

@DonMartin76 That's right. I'll fix them asap. Some minor changes is required also in the wicked-sample-config project. I'll fill a pull request for those changes in that repo.

@armezit
Copy link
Author

armezit commented Dec 9, 2018

@DonMartin76 I'm confused about static content files. For example, there is two wicked.css files:

  1. wicked-sample-config /static/content/wicked.css
  2. wicked.portal-env /initial-config/static/content/wicked.css

Which one is the right place to edit?
Currently I'm editing the first one on my development environment.
Is it required to edit the second one in the wicked.portal-env too ?

@DonMartin76
Copy link
Member

DonMartin76 commented Dec 9, 2018 via email

@armezit
Copy link
Author

armezit commented Dec 9, 2018

I've fixed positioning and alignment issues. (no pull-request yet) see the following image:

screenshot from 2018-12-09 23-13-23

But the colors...it's another story. Generally, in BS4 colors are much more brighter and saturated. For example these are the default background colors:
screenshot from 2018-12-09 23-17-29

We have these solutions:

  • For individual elements, like the top menu bar we are able to restore the old style by add/modify some styles in wicked.css.
  • For general elements, like buttons - cards (panels in bs3) - etc, we should stick to the new default colors or develop a new bootstrap theme or even use one the available bootswatch.com themes.
    Develop a new theme, even a simplistic one, would require a lot of work. Using bootswatch themes is the simplest solution, but it would change all the look and feel of UI .
    What do you think?

@DonMartin76
Copy link
Member

DonMartin76 commented Dec 9, 2018 via email

@armezit
Copy link
Author

armezit commented Dec 10, 2018

I've committed last changes in this pull request. Also filled two pull requests for both wicked-sample-config and wicked.portal-env.

We could add guidance on how to get the colors back perhaps, but state that it will mean you need to maintain them yourself. That should be possible, right? By overriding certain classes via wicked.css?

Yes, one can override classes in wicked.css. I'll maintain required help docs.

@armezit armezit force-pushed the twitter-bootstrap-4 branch from a33dd91 to 5f7a97a Compare January 26, 2019 09:55
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

Successfully merging this pull request may close these issues.

3 participants