Skip to content

Commit

Permalink
fix: form valid-error style in naive (#5336)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan authored Jan 9, 2025
1 parent 516d0b8 commit c979c23
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/web-naive/src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { registerAccessDirective } from '@vben/access';
import { preferences } from '@vben/preferences';
import { initStores } from '@vben/stores';
import '@vben/styles';
import '@vben/styles/naive';

import { useTitle } from '@vueuse/core';

Expand Down
3 changes: 3 additions & 0 deletions packages/styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"./ele": {
"default": "./src/ele/index.css"
},
"./naive": {
"default": "./src/naive/index.css"
},
"./global": {
"default": "./src/global/index.scss"
}
Expand Down
20 changes: 20 additions & 0 deletions packages/styles/src/naive/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.form-valid-error {
.n-base-selection__state-border,
.n-input__state-border,
.n-radio-group__splitor {
border: var(--n-border-error);
}

.n-radio-group .n-radio-button,
.n-radio-group .n-radio-group__splitor {
--n-button-border-color: rgb(255 56 96);
}

.n-radio__dot {
--n-box-shadow: inset 0 0 0 1px rgb(255 56 96);
}

.n-checkbox-box__border {
--n-border: 1px solid rgb(255 56 96);
}
}

0 comments on commit c979c23

Please sign in to comment.