Skip to content

Commit

Permalink
Merge branch 'main' into rohit/main/type-error
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit2sharma95 committed Jan 13, 2021
2 parents 4bfbba9 + f43133a commit 8345e20
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 38 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/browserstack.yml
Expand Up @@ -4,7 +4,6 @@ on:
push:

env:
CI: true
FORCE_COLOR: 2
NODE: 14.x

Expand All @@ -29,8 +28,8 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.OS }}-node-v${{ env.NODE }}-
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ env.NODE }}-
- name: Install npm dependencies
run: npm ci
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/bundlewatch.yml
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:

env:
CI: true
FORCE_COLOR: 2
NODE: 14.x

Expand All @@ -30,8 +29,8 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.OS }}-node-v${{ env.NODE }}-
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ env.NODE }}-
- name: Install npm dependencies
run: npm ci
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/css.yml
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:

env:
CI: true
FORCE_COLOR: 2
NODE: 14.x

Expand All @@ -30,8 +29,8 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.OS }}-node-v${{ env.NODE }}-
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ env.NODE }}-
- name: Install npm dependencies
run: npm ci
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/docs.yml
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:

env:
CI: true
FORCE_COLOR: 2
NODE: 14.x

Expand All @@ -32,8 +31,8 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.OS }}-node-v${{ env.NODE }}-
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ env.NODE }}-
- name: Install npm dependencies
run: npm ci
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/js.yml
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:

env:
CI: true
FORCE_COLOR: 2

jobs:
Expand Down Expand Up @@ -35,8 +34,8 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}}
restore-keys: |
${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.OS }}-node-v${{ matrix.node }}-
${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ matrix.node }}-
- name: Install npm dependencies
run: npm ci
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:

env:
CI: true
FORCE_COLOR: 2
NODE: 14.x

Expand All @@ -30,8 +29,8 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.OS }}-node-v${{ env.NODE }}-
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ env.NODE }}-
- name: Install npm dependencies
run: npm ci
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/node-sass.yml
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:

env:
CI: true
FORCE_COLOR: 2
NODE: 14.x

Expand Down
11 changes: 0 additions & 11 deletions .gitignore
@@ -1,19 +1,8 @@
# Ignore docs files
/_gh_pages/
# This is the old Jekyll docs dist folder;
# keeping it here so that when we switch branches it doesn't show up
/site/docs/**/dist/
# Jekyll's cache folder; keeping it for the same reason as above
/site/.jekyll-cache/
# Hugo resources folder
/resources/

# Ignore ruby/bundler files;
# keeping them here so that when we switch branches they don't show up
/.bundle/
/vendor/
/.ruby-version

# Numerous always-ignore extensions
*.diff
*.err
Expand Down
4 changes: 4 additions & 0 deletions .stylelintrc
Expand Up @@ -3,6 +3,10 @@
"stylelint-config-twbs-bootstrap/scss"
],
"rules": {
"declaration-property-value-disallowed-list": {
"border": "none",
"outline": "none"
},
"function-disallowed-list": [
"calc",
"lighten",
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -140,7 +140,7 @@
"rollup": "^2.36.1",
"rollup-plugin-istanbul": "^3.0.0",
"rtlcss": "^3.0.0",
"sass": "^1.32.2",
"sass": "^1.32.4",
"shelljs": "^0.8.4",
"stylelint": "^13.8.0",
"stylelint-config-twbs-bootstrap": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion scss/_close.scss
Expand Up @@ -22,7 +22,7 @@
}

&:focus {
outline: none;
outline: 0;
box-shadow: $btn-close-focus-shadow;
opacity: $btn-close-focus-opacity;
}
Expand Down
9 changes: 9 additions & 0 deletions scss/_reboot.scss
Expand Up @@ -411,6 +411,15 @@ button {
border-radius: 0;
}

// Explicitly remove focus outline in Chromium when it shouldn't be
// visible (e.g. as result of mouse click or touch tap). It already
// should be doing this automatically, but seems to currently be
// confused and applies its very visible two-tone outline anyway.

button:focus:not(:focus-visible) {
outline: 0;
}

// 1. Remove the margin in Firefox and Safari

input,
Expand Down
2 changes: 1 addition & 1 deletion scss/_variables.scss
Expand Up @@ -938,7 +938,7 @@ $dropdown-box-shadow: $box-shadow !default;

$dropdown-link-color: $gray-900 !default;
$dropdown-link-hover-color: shade-color($gray-900, 10%) !default;
$dropdown-link-hover-bg: $gray-100 !default;
$dropdown-link-hover-bg: $gray-200 !default;

$dropdown-link-active-color: $component-active-color !default;
$dropdown-link-active-bg: $component-active-bg !default;
Expand Down
2 changes: 1 addition & 1 deletion scss/forms/_form-range.scss
Expand Up @@ -12,7 +12,7 @@
appearance: none;

&:focus {
outline: none;
outline: 0;

// Pseudo-elements must be split across multiple rulesets to have an effect.
// No box-shadow() mixin for focus accessibility.
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.0/helpers/stretched-link.md
Expand Up @@ -5,7 +5,7 @@ description: Make any HTML element or Bootstrap component clickable by "stretchi
group: helpers
---

Add `.stretched-link` to a link to make its [containing block](https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block) clickable via a `::after` pseudo element. In most cases, this means that an element with `position: relative;` that contains a link with the `.stretched-link` class is clickable.
Add `.stretched-link` to a link to make its [containing block](https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block) clickable via a `::after` pseudo element. In most cases, this means that an element with `position: relative;` that contains a link with the `.stretched-link` class is clickable. Please note given [how CSS `position` works](https://www.w3.org/TR/CSS21/visuren.html#propdef-position), `.stretched-link` cannot be mixed with most table elements.

Cards have `position: relative` by default in Bootstrap, so in this case you can safely add the `.stretched-link` class to a link in the card without any other HTML changes.

Expand Down

0 comments on commit 8345e20

Please sign in to comment.