diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 567649f479..0000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,4 +0,0 @@ -package.json @ant-design/ant-design-core -.github/workflows/ @ant-design/ant-design-core -scripts/ @ant-design/ant-design-core -LICENSE @ant-design/ant-design-core \ No newline at end of file diff --git a/.stylelintrc.json b/.stylelintrc.json index b5af6dd10a..3ee014415a 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -13,6 +13,7 @@ { "ignoreFunctions": [ "fade", + "fadeout", "tint", "darken", "ceil", diff --git a/components/_util/theme/util/roundedArrow.tsx b/components/_util/theme/util/roundedArrow.tsx index 07cce5df9c..99edae0981 100644 --- a/components/_util/theme/util/roundedArrow.tsx +++ b/components/_util/theme/util/roundedArrow.tsx @@ -18,6 +18,10 @@ export const roundedArrow = (width: number, outerRadius: number, bgColor: string const fy = width - cornerHeight; const ex = 2 * width; const ey = fy + outerRadius * (1 / Math.sqrt(2)); + const gx = fx - 1; + const gy = fy; + const hx = ax; + const hy = ay - 1; return { borderRadius: { _skip_check_: true, value: `0 0 2px` }, @@ -29,11 +33,12 @@ export const roundedArrow = (width: number, outerRadius: number, bgColor: string insetInlineStart: -width, width: width * 3, height: width * 3, - background: `linear-gradient(to left, ${bgColor} 50%, ${bgColor} 50%) no-repeat ${Math.ceil( - -width + 1, - )}px ${Math.ceil(-width + 1)}px`, + background: bgColor, + // Hack firefox: https://github.com/ant-design/ant-design/pull/33710#issuecomment-1015287825 + backgroundRepeat: 'no-repeat', + backgroundPosition: `${Math.ceil(-width + 1)}px ${Math.ceil(-width + 1)}px`, content: '""', - clipPath: `path('M ${ax} ${ay} A ${outerRadius} ${outerRadius} 0 0 1 ${bx} ${by} L ${cx} ${cy} A ${radiusBase} ${radiusBase} 0 0 0 ${dx} ${dy} L ${ex} ${ey} A ${outerRadius} ${outerRadius} 0 0 1 ${fx} ${fy} Z')`, + clipPath: `path('M ${ax} ${ay} A ${outerRadius} ${outerRadius} 0 0 1 ${bx} ${by} L ${cx} ${cy} A ${radiusBase} ${radiusBase} 0 0 0 ${dx} ${dy} L ${ex} ${ey} A ${outerRadius} ${outerRadius} 0 0 1 ${fx} ${fy} L ${gx} ${gy} L ${hx} ${hy} Z')`, }, }; }; diff --git a/components/auto-complete/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/auto-complete/__tests__/__snapshots__/demo-extend.test.ts.snap index 325a0faabf..928df24883 100644 --- a/components/auto-complete/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/auto-complete/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -522,9 +522,11 @@ exports[`renders ./components/auto-complete/demo/form-debug.md extend context co >