Skip to content

Commit 299ec86

Browse files
authored
Merge pull request #9 from apertureless/feature/fix-style-naming
Rename errorClass and successClass
2 parents 53fff85 + 6fe2734 commit 299ec86

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Interactive password strength meter based on [zxcvbn](https://github.com/dropbox
5050
| secureLength | Number | 7 | password min length |
5151
| badge | Boolean | true | display password count badge |
5252
| defaultClass | String | Password__field | input field class |
53-
| errorClass | String | has-error | error class for password count badge |
54-
| successClass | String | is-success | success class for password count badge |
53+
| errorClass | String | Password__badge--error | error class for password count badge |
54+
| successClass | String | Password__badge--success | success class for password count badge |
5555
| strengthMeterClass | String | Password__strength-meter | strength-meter class |
5656
| strengthMeterFillClass | String | Password__strength-meter--fill | strength-meter class for individual data fills |
5757

src/components/PasswordStrengthMeter.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
*/
110110
errorClass: {
111111
type: String,
112-
default: 'has-error'
112+
default: 'Password__badge--error'
113113
},
114114
/**
115115
* CSS Class for the badge
@@ -120,7 +120,7 @@
120120
*/
121121
successClass: {
122122
type: String,
123-
default: 'is-success'
123+
default: 'Password__badge--success'
124124
},
125125
/**
126126
* CSS class for styling the
@@ -299,11 +299,11 @@
299299
line-height: 1.1;
300300
}
301301
302-
.has-error {
302+
.Password__badge--error {
303303
background: red;
304304
}
305305
306-
.is-success {
306+
.Password__badge--success {
307307
background: #1bbf1b;
308308
}
309309
</style>

0 commit comments

Comments
 (0)