Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
42812162
Commit
42812162
authored
Jul 21, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(dark-theme): disabled link `button` color
修复黑暗主题下禁用状态的link类型按钮的颜色
parent
9b7ede09
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
theme.ts
build/vite/plugin/theme.ts
+2
-2
btn.less
src/design/ant/btn.less
+16
-7
No files found.
CHANGELOG.zh_CN.md
View file @
42812162
...
...
@@ -6,6 +6,7 @@
-
**Dark Theme**
黑暗主题下的配色问题修正
-
修复
`Tree`
组件被选中节点的背景颜色
-
修复
`Alert`
组件的颜色配置
-
修复禁用状态下的
`link`
类型的按钮颜色问题
## 2.6.1(2021-07-19)
...
...
build/vite/plugin/theme.ts
View file @
42812162
...
...
@@ -45,8 +45,8 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
}),
antdDarkThemePlugin
({
preloadFiles
:
[
//
path.resolve(process.cwd(), 'node_modules/ant-design-vue/dist/antd.less'),
path
.
resolve
(
process
.
cwd
(),
'
node_modules/ant-design-vue/dist/antd.dark.less
'
),
path
.
resolve
(
process
.
cwd
(),
'
node_modules/ant-design-vue/dist/antd.less
'
),
//
path.resolve(process.cwd(), 'node_modules/ant-design-vue/dist/antd.dark.less'),
path
.
resolve
(
process
.
cwd
(),
'
src/design/index.less
'
),
],
filter
:
(
id
)
=>
(
isBuild
?
!
id
.
endsWith
(
'
antd.less
'
)
:
true
),
...
...
src/design/ant/btn.less
View file @
42812162
...
...
@@ -50,15 +50,15 @@
border-color: @button-cancel-hover-border-color;
}
&[disabled],
&[disabled]:hover {
color: fade(@button-cancel-color, 40%);
background: fade(@button-cancel-bg-color, 40%);
border-color: fade(@button-cancel-border-color, 40%);
}
//
&[disabled],
//
&[disabled]:hover {
//
color: fade(@button-cancel-color, 40%);
//
background: fade(@button-cancel-bg-color, 40%);
//
border-color: fade(@button-cancel-border-color, 40%);
//
}
}
&.ant-btn-link.is-disabled {
[data-theme='light']
&.ant-btn-link.is-disabled {
color: rgba(0, 0, 0, 0.25);
text-shadow: none;
cursor: not-allowed !important;
...
...
@@ -67,6 +67,15 @@
box-shadow: none;
}
[data-theme='dark'] &.ant-btn-link.is-disabled {
color: rgba(255, 255, 255, 0.25) !important;
text-shadow: none;
cursor: not-allowed !important;
background-color: transparent !important;
border-color: transparent !important;
box-shadow: none;
}
// color: @white;
&-success.ant-btn-link:not([disabled='disabled']) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment