diff --git a/components/layout/Sider.tsx b/components/layout/Sider.tsx index 52745aefd7..f0b4d11895 100644 --- a/components/layout/Sider.tsx +++ b/components/layout/Sider.tsx @@ -161,7 +161,7 @@ export default class Sider extends React.Component { const triggerDom = ( trigger !== null ? zeroWidthTrigger || ( -
+
{trigger || defaultTrigger}
) : null diff --git a/components/layout/__tests__/__snapshots__/demo.test.js.snap b/components/layout/__tests__/__snapshots__/demo.test.js.snap index ccca8cead3..55ea4ecb1c 100644 --- a/components/layout/__tests__/__snapshots__/demo.test.js.snap +++ b/components/layout/__tests__/__snapshots__/demo.test.js.snap @@ -785,6 +785,7 @@ exports[`renders ./components/layout/demo/side.md correctly 1`] = `
Team 1 Team 2 - + File diff --git a/components/layout/style/index.less b/components/layout/style/index.less index ff8ecc1d84..c268d1411a 100644 --- a/components/layout/style/index.less +++ b/components/layout/style/index.less @@ -56,15 +56,15 @@ } &-trigger { - position: absolute; + position: fixed; text-align: center; - width: 100%; bottom: 0; cursor: pointer; height: @layout-trigger-height; line-height: @layout-trigger-height; - background: @layout-trigger-background; color: @layout-trigger-color; + background: fade(@layout-trigger-background, 100); + z-index: 1; } &-zero-width {