From 860b511e0339df6c5baffa9671c84ef5f0c26abd Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 26 Mar 2020 17:49:45 +0200 Subject: [PATCH 01/55] Update eslint-plugin-unicorn to v18.0.0 (#30461) --- .eslintrc.json | 2 ++ package-lock.json | 10 +++++----- package.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index b3f1688768..7ccce3214c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -45,7 +45,9 @@ "unicorn/prefer-includes": "off", "unicorn/prefer-node-append": "off", "unicorn/prefer-node-remove": "off", + "unicorn/prefer-number-properties": "off", "unicorn/prefer-query-selector": "off", + "unicorn/prefer-set-has": "off", "unicorn/prefer-text-content": "off", "unicorn/prevent-abbreviations": "off" } diff --git a/package-lock.json b/package-lock.json index d8453d737f..e5381dca82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4096,9 +4096,9 @@ } }, "eslint-plugin-unicorn": { - "version": "17.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-17.2.0.tgz", - "integrity": "sha512-0kYjrywf0kQxevFz571KrDfYMIRZ5Kq6dDgPU1EEBFeC181r+fAaPatBScWX+/hisKJ4+eCRFebxTeVylsSYmw==", + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-18.0.0.tgz", + "integrity": "sha512-2mk3Cz6H2LCsKSEmJ7Wmqm/XbMAQ55+PjSBFM2Yh1/A7uk2gryNNhdfbFDycsjs/ylqk0m7LJ4qPpK9OlP8f9A==", "dev": true, "requires": { "ci-info": "^2.0.0", @@ -4108,10 +4108,10 @@ "import-modules": "^2.0.0", "lodash": "^4.17.15", "read-pkg-up": "^7.0.1", - "regexp-tree": "^0.1.20", + "regexp-tree": "^0.1.21", "reserved-words": "^0.1.2", "safe-regex": "^2.1.1", - "semver": "^7.1.2" + "semver": "^7.1.3" }, "dependencies": { "find-up": { diff --git a/package.json b/package.json index 001ba5e734..000d783d92 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "eslint": "^6.8.0", "eslint-config-xo": "^0.29.1", "eslint-plugin-import": "^2.20.1", - "eslint-plugin-unicorn": "^17.2.0", + "eslint-plugin-unicorn": "^18.0.0", "find-unused-sass-variables": "^1.0.5", "glob": "^7.1.6", "hammer-simulator": "0.0.1", From 7ce29d75f38f2c81f57e8a6cf14c510655e2e316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laussel=20Lo=C3=AFc?= Date: Sat, 28 Mar 2020 08:51:24 +0100 Subject: [PATCH 02/55] v5 tabs - accessibility issue when using ul/li semantic Add aria-role presentation on li element when ul element has role tablist and remove dropdown from visual tests as they've been removed from doc --- js/tests/unit/tab.spec.js | 34 +++++++------- js/tests/visual/collapse.html | 8 ++-- js/tests/visual/modal.html | 6 +-- js/tests/visual/tab.html | 60 +++++++++++------------- site/content/docs/4.3/components/navs.md | 40 ++++++++-------- 5 files changed, 72 insertions(+), 76 deletions(-) diff --git a/js/tests/unit/tab.spec.js b/js/tests/unit/tab.spec.js index 3e45f4d03e..70aa8eb336 100644 --- a/js/tests/unit/tab.spec.js +++ b/js/tests/unit/tab.spec.js @@ -129,8 +129,8 @@ describe('Tab', () => { it('should not fire shown when tab is already active', done => { fixtureEl.innerHTML = [ '', '
', '
', @@ -155,8 +155,8 @@ describe('Tab', () => { it('should not fire shown when tab is disabled', done => { fixtureEl.innerHTML = [ '', '
', '
', @@ -181,8 +181,8 @@ describe('Tab', () => { it('show and shown events should reference correct relatedTarget', done => { fixtureEl.innerHTML = [ '', '
', '
', @@ -275,17 +275,17 @@ describe('Tab', () => { it('should handle removed tabs', done => { fixtureEl.innerHTML = [ '
@@ -51,11 +51,11 @@ @@ -72,20 +72,20 @@ - +
@@ -173,11 +173,11 @@
@@ -186,11 +186,11 @@ - +
@@ -198,11 +198,11 @@ - +
diff --git a/js/tests/visual/scrollspy.html b/js/tests/visual/scrollspy.html index 30ce86e1fd..03e62c1f43 100644 --- a/js/tests/visual/scrollspy.html +++ b/js/tests/visual/scrollspy.html @@ -25,11 +25,11 @@ diff --git a/site/content/docs/4.3/examples/navbars/index.html b/site/content/docs/4.3/examples/navbars/index.html index 1016b5b9a5..6cd9ae380e 100644 --- a/site/content/docs/4.3/examples/navbars/index.html +++ b/site/content/docs/4.3/examples/navbars/index.html @@ -25,11 +25,11 @@ extra_css: @@ -82,11 +82,11 @@ extra_css: @@ -116,11 +116,11 @@ extra_css: @@ -150,11 +150,11 @@ extra_css: @@ -184,11 +184,11 @@ extra_css: @@ -218,11 +218,11 @@ extra_css: @@ -252,11 +252,11 @@ extra_css: @@ -289,11 +289,11 @@ extra_css: @@ -321,11 +321,11 @@ extra_css: @@ -354,11 +354,11 @@ extra_css: diff --git a/site/content/docs/4.3/examples/offcanvas/index.html b/site/content/docs/4.3/examples/offcanvas/index.html index 4a8501e3a0..cc41316bce 100644 --- a/site/content/docs/4.3/examples/offcanvas/index.html +++ b/site/content/docs/4.3/examples/offcanvas/index.html @@ -31,11 +31,11 @@ body_class: "bg-light" diff --git a/site/content/docs/4.3/examples/starter-template/index.html b/site/content/docs/4.3/examples/starter-template/index.html index 0a6ea6291c..d2869091e3 100644 --- a/site/content/docs/4.3/examples/starter-template/index.html +++ b/site/content/docs/4.3/examples/starter-template/index.html @@ -25,11 +25,11 @@ extra_css: diff --git a/site/layouts/partials/docs-versions.html b/site/layouts/partials/docs-versions.html index cddf4a116e..ef0b4518a8 100644 --- a/site/layouts/partials/docs-versions.html +++ b/site/layouts/partials/docs-versions.html @@ -2,13 +2,13 @@ - + From 43d866313d5849c08f4e0f6589691ad63ee4e42a Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Tue, 31 Mar 2020 22:42:45 +0200 Subject: [PATCH 29/55] Fix active state dropdown --- site/assets/scss/_subnav.scss | 4 +--- site/layouts/partials/docs-versions.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/site/assets/scss/_subnav.scss b/site/assets/scss/_subnav.scss index e0492edc1b..5b4d2806f9 100644 --- a/site/assets/scss/_subnav.scss +++ b/site/assets/scss/_subnav.scss @@ -11,10 +11,8 @@ box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05); } - .dropdown-item.active { + .dropdown-item.current { font-weight: 600; - color: $gray-900; - background-color: transparent; background-image: escape-svg($dropdown-active-icon); background-repeat: no-repeat; background-position: .4rem .6rem; diff --git a/site/layouts/partials/docs-versions.html b/site/layouts/partials/docs-versions.html index ef0b4518a8..bfe3c2a559 100644 --- a/site/layouts/partials/docs-versions.html +++ b/site/layouts/partials/docs-versions.html @@ -3,7 +3,7 @@ Bootstrap v{{ .Site.Params.docs_version }}