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

Import Bootstrap from npm and upgrade to latest 3.x #1395

Merged
merged 5 commits into from
Jul 5, 2020
Merged

Import Bootstrap from npm and upgrade to latest 3.x #1395

merged 5 commits into from
Jul 5, 2020

Conversation

Hirse
Copy link
Contributor

@Hirse Hirse commented Jul 4, 2020

Most changes in bootstrap's minor version upgrades are fixes and security patches.
I only found the following changes required for us:

  • Replace dropdown .pull-right with .dropdown-menu-right
  • Remove white-space from .dropdown-header
  • Use new .container-fluid class for wide container

A further upgrade to 4.x is more complicated as it contains lots of breaking changes and switches from LESS to SCSS.

@campersau
Copy link
Collaborator

The tests are failing because that apparently wasn't the best idea:

const textBox = event.currentTarget.nextElementSibling.firstElementChild; // this may not be the best idea...

You could replace that with for example this

const textBox = event.currentTarget.parentElement.querySelector('input[type="search"]');

to fix it.

@campersau campersau merged commit d6098ce into FredrikNoren:master Jul 5, 2020
@Hirse Hirse deleted the bootstrap branch July 6, 2020 16:46
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.

None yet

2 participants