mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-15 01:02:35 +02:00
fix(cssnano-preset): disable z-index minification (#7593)
* fix(cssnano-preset): disable z-index minification * add z-index tests link to pages tests * revert change to docs
This commit is contained in:
parent
7e9db564d1
commit
1f0440074a
4 changed files with 24 additions and 0 deletions
|
@ -13,6 +13,8 @@ const preset: typeof advancedBasePreset = function preset(opts) {
|
||||||
const advancedPreset = advancedBasePreset({
|
const advancedPreset = advancedBasePreset({
|
||||||
autoprefixer: {add: false},
|
autoprefixer: {add: false},
|
||||||
discardComments: {removeAll: true},
|
discardComments: {removeAll: true},
|
||||||
|
/* cSpell:ignore zindex */
|
||||||
|
zindex: false,
|
||||||
...opts,
|
...opts,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -28,3 +28,4 @@ import Readme from "../README.md"
|
||||||
- [General Markdown tests](/tests/pages/markdownPageTests)
|
- [General Markdown tests](/tests/pages/markdownPageTests)
|
||||||
- [TOC tests](/tests/pages/page-toc-tests)
|
- [TOC tests](/tests/pages/page-toc-tests)
|
||||||
- [Tabs tests](/tests/pages/tabs-tests)
|
- [Tabs tests](/tests/pages/tabs-tests)
|
||||||
|
- [z-index tests](/tests/pages/z-index-tests)
|
||||||
|
|
17
website/_dogfooding/_pages tests/z-index-tests.tsx
Normal file
17
website/_dogfooding/_pages tests/z-index-tests.tsx
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
/**
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import React from 'react';
|
||||||
|
import Layout from '@theme/Layout';
|
||||||
|
|
||||||
|
export default function zIndexTest(): JSX.Element {
|
||||||
|
return (
|
||||||
|
<Layout>
|
||||||
|
<p id="z-index-test">This should have a z-index of 100</p>
|
||||||
|
</Layout>
|
||||||
|
);
|
||||||
|
}
|
|
@ -20,3 +20,7 @@ html.plugin-blog.plugin-id-blog-tests .navbar {
|
||||||
html.plugin-pages.plugin-id-pages-tests .navbar {
|
html.plugin-pages.plugin-id-pages-tests .navbar {
|
||||||
border-bottom: solid thin yellow;
|
border-bottom: solid thin yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#z-index-test {
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue