Skip to content

Commit

Permalink
fix: element plus validate failed style (#5130)
Browse files Browse the repository at this point in the history
* fix: element plus validate failed style

* fix: element plus textarea style
  • Loading branch information
mynetfan authored Dec 13, 2024
1 parent 7fbf7b1 commit 0410f1e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions packages/styles/src/ele/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
.el-card {
--el-card-border-radius: var(--radius) !important;
}

.form-valid-error {
/** select 选择器的样式 */
.el-select .el-select__wrapper {
box-shadow: 0 0 0 1px var(--el-color-danger) inset;
}

/** input 选择器的样式 */
.el-input .el-input__wrapper {
box-shadow: 0 0 0 1px var(--el-color-danger) inset;
}

/** radio和checkbox 选择器的样式 */
.el-radio .el-radio__inner,
.el-checkbox .el-checkbox__inner {
border: 1px solid var(--el-color-danger);
}

.el-checkbox-button .el-checkbox-button__inner,
.el-radio-button .el-radio-button__inner {
border: 1px solid var(--el-color-danger);
}

.el-checkbox-button:first-child .el-checkbox-button__inner,
.el-radio-button:first-child .el-radio-button__inner {
border-left: 1px solid var(--el-color-danger);
}

.el-checkbox-button:not(:first-child) .el-checkbox-button__inner,
.el-radio-button:not(:first-child) .el-radio-button__inner {
border-left: none;
}

.el-textarea .el-textarea__inner {
border: 1px solid var(--el-color-danger);
}
}

0 comments on commit 0410f1e

Please sign in to comment.