Skip to content

Commit b0fc052

Browse files
authored
Merge pull request #167 from coliff/dev/coliff/add-dark-mode-support
2 parents 7381e25 + 2ad6099 commit b0fc052

File tree

11 files changed

+40
-13
lines changed

11 files changed

+40
-13
lines changed

.github/workflows/super-linter.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
statuses: write
1515
name: Lint Code Base
1616
runs-on: ubuntu-latest
17+
if: ${{ github.actor != 'dependabot[bot]' }}
1718

1819
steps:
1920
- name: Checkout Code
@@ -26,8 +27,12 @@ jobs:
2627
env:
2728
DEFAULT_BRANCH: main
2829
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
IGNORE_GITIGNORED_FILES: true
2931
JAVASCRIPT_DEFAULT_STYLE: prettier
3032
LINTER_RULES_PATH: /
33+
LOG_LEVEL: NOTICE
34+
SUPPRESS_POSSUM: true
3135
VALIDATE_ALL_CODEBASE: false
3236
VALIDATE_EDITORCONFIG: false
3337
VALIDATE_MARKDOWN: false
38+
VALIDATE_NATURAL_LANGUAGE: false

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ A show password as text toggle for Bootstrap forms
1313
- Base64 encoded SVG icons (no external images or fonts required)
1414
- Graceful fallback for browsers with JavaScript disabled
1515
- Works with Bootstrap 4 and 5
16+
- Supports dark mode (Bootstrap 5 only)
1617
- Only 1KB gzipped
1718

1819
![show password toggle](https://christianoliff.com/img/2020/show-password-toggle-anim.gif)
@@ -47,8 +48,8 @@ You should also add `name="current-password"` and `autocomplete="current-passwor
4748

4849
## Demo
4950

50-
- [Bootstrap 4 Demo](https://coliff.github.io/bootstrap-show-password-toggle/tests/bootstrap4-sign-in/)
5151
- [Bootstrap 5 Demo](https://coliff.github.io/bootstrap-show-password-toggle/tests/bootstrap5-sign-in/)
52+
- [Bootstrap 4 Demo](https://coliff.github.io/bootstrap-show-password-toggle/tests/bootstrap4-sign-in/)
5253

5354
## Browser Support
5455

@@ -63,7 +64,7 @@ A. Yes you can change the icon displayed by replacing the `.input-password[type=
6364
## Known Issues
6465

6566
- If the browser autofills the password input then the user-agent will apply `background-image: none !important`.
66-
- The password input requires the use of the `required` attribute. This is so the background-image is not displayed when the input is empty. (It'd be great if browsers supported the [:blank](https://developer.mozilla.org/en-US/docs/Web/CSS/:blank) or [:empty](https://developer.mozilla.org/en-US/docs/Web/CSS/:empty) pseudo-selectors!)
67+
- The password input requires the use of the `required` attribute. This is so the background-image is not displayed when the input is empty. (It'd be great if browsers supported the [:blank](https://developer.mozilla.org/en-US/docs/Web/CSS/:blank) pseudo-selector!)
6768

6869
## Credits and Thanks
6970

css/show-password-toggle.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/show-password-toggle.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/show-password-toggle.min.css

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)