⌨️ Add less vars @link-focus-decoration and @link-focus-outline

This commit is contained in:
afc163 2020-03-23 12:09:02 +08:00 committed by zefeng
parent b8109bd20e
commit bd9be358e2
2 changed files with 8 additions and 0 deletions

View File

@ -245,6 +245,12 @@ a {
outline: 0;
}
// https://github.com/ant-design/ant-design/issues/22503
&:focus {
text-decoration: @link-focus-decoration;
outline: @link-focus-outline;
}
&[disabled] {
color: @disabled-color;
cursor: not-allowed;

View File

@ -98,6 +98,8 @@
@link-active-color: color(~`colorPalette('@{link-color}', 7) `);
@link-decoration: none;
@link-hover-decoration: none;
@link-focus-decoration: none;
@link-focus-outline: 0;
// Animation
@ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1);