Coder Social home page Coder Social logo

Comments (6)

siriwatknp avatar siriwatknp commented on June 26, 2024 2

@donatoaguirre24 For temporary fix, I will add collapsedIconProps to Nav. I will propose a permanent way later because now I'm working on mui-formik to integrate Material-UI with formik and it need custom styling solution, so I want both of the project to follow the same way.

from mui-layout.

siriwatknp avatar siriwatknp commented on June 26, 2024 1

@donatoaguirre24 Here it is!
https://siriwatknp.github.io/mui-layout/?path=/story/custom-styles--nav

image

from mui-layout.

elitan avatar elitan commented on June 26, 2024

I think if we can set z-index: 1201; to MuiDrawer-paperAnchorDockedLeft I think we can have the left navigation to go over the header.

image

@siriwatknp What do you think?

from mui-layout.

siriwatknp avatar siriwatknp commented on June 26, 2024

@elitan what is your use case? there is a props clipped to set Nav as the same layer as Header

from mui-layout.

elitan avatar elitan commented on June 26, 2024

@elitan what is your use case? there is a props clipped to set Nav as the same layer as Header

When I use this:

  const config = {
    ...standard_config,
    navVariant: {
      xs: 'temporary',
      sm: 'permanent',
      md: 'permanent',
    },
    collapsedBreakpoint: 'md', // collapse between sm and xs
    collapsible: {
      xs: false,
      sm: true,
    },
    clipped: true,
    squeezed: false,
    headerPosition: 'fixed',
  };

The Header has z-index: 1201 and the Nav has z-index: 1200. I was thinking if there was any way to get the Nav to be above (higher z-indez) than Header.

from mui-layout.

siriwatknp avatar siriwatknp commented on June 26, 2024

@elitan what is your use case? there is a props clipped to set Nav as the same layer as Header

When I use this:

  const config = {
    ...standard_config,
    navVariant: {
      xs: 'temporary',
      sm: 'permanent',
      md: 'permanent',
    },
    collapsedBreakpoint: 'md', // collapse between sm and xs
    collapsible: {
      xs: false,
      sm: true,
    },
    clipped: true,
    squeezed: false,
    headerPosition: 'fixed',
  };

The Header has z-index: 1201 and the Nav has z-index: 1200. I was thinking if there was any way to get the Nav to be above (higher z-indez) than Header.

Yes you can do this if you want to override the styles of Header

import { makeStyles } from '@material-ui/styles';

const useAppBarStyles = makeStyles(({ palette }) => ({
  root: {
    zIndex: 1190,
  },
}));

function App() {
  const appBarStyles = useAppBarStyles();
  return (
    <Root>
      <Header classes={appBarStyles} />
    </Root>
  )
}

from mui-layout.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.