Z-order for ClockPicker

Within my application, I've implemented a pop-up for inputting event data. One of the fields within this pop-up is for setting the time using the DateTimePicker from MUI.

<Popup
                width={600}
                height={600}
                /../
            >
                <div className={"group"}>
                        <div className={"label1"}>Name</div>
                        <div className={"label2"}>
                            <FormControl>
                                <DesktopTimePicker

However, I've encountered an issue where the second pop-up generated by the TimePicker remains hidden behind the initial one. Despite attempting to adjust the z-index to 10000, the problem persists. The browser displays the following:

.css-1anqmj6-MuiPopper-root-MuiPickersPopper-root {
    z-index: 1300;
}

.MuiPickersPopper-root {
    z-index: 10000;
}

Am I unable to override this value?

Below is the CSS styling I have used:

.MuiPickersPopper-root {
    z-index: 10000; !important;
}

.group {
    display: flex;
    margin: 0.6em;
    align-items: center;
    flex-direction: row;
}

.group .label1 {
    display: inline-block;
    width: 25%;
}

.group .label2 {
    display: inline-block;
    width: 75%;
}

Answer №1

After spending several hours on it, I finally pinpointed the issue - removing the semicolon after the index is crucial: z-index: 10000 !important;

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Adding custom CSS and JavaScript to the TYPO3 backend: A step-by-step guide

Is there a way to incorporate css and javascript files into the backend? I'm aiming to enhance custom created content elements with these files, making them more visually appealing for users. Platform: TYPO3 v9 Method: Composer Mode Purpose: Cu ...

Deconstructing JavaScript scripts to incorporate HTML5/CSS3 functionality for outdated browsers such as Internet Explorer

I have been researching various resources and guides related to different scripting libraries, but none of them seem to address all the inquiries I have regarding performance and functionality. With so many scripts available, it can be overwhelming to dete ...

The Bootstrap row does not display divs in a stacked formation when viewed on smaller screens

My layout is using bootstrap rows for two divs. I want them to be side by side on large devices, but stacked on small devices. However, Bootstrap is not stacking them on small devices and they are still both sitting at 50%. The specific divs I am talking ...

Settings for the packaging of web components

Is there a way to configure a web component in vue.config.js and separate the iconfont.css section when building? I am using the vue-cli-service build --target wc-async --name chat-ui src/views/Chat/Launcher.vue --report command to package the web compon ...

Guide to utilizing font awesome 5 after installation through NPM

After successfully installing font-awesome in my project using npm, I am unable to locate the documentation on what steps to take next: $ npm install --save @fortawesome/fontawesome-free-webfonts My question now is: what should I do after this? Could so ...

Challenges with Auto-suggestion Feature (Material UI & React Integration with Reagent/ClojureScript)

I am facing an issue while using the Material UI's Autocomplete with Reagent (ClojureScript). The component appears fine on the screen, but upon clicking it, I encounter the following errors: Uncaught TypeError: Cannot read property 'focus' ...

What is the best way to integrate PHP code within CSS?

I'm working on a script that requires me to add PHP code within a CSS stylesheet. However, when I attempt to do so, nothing seems to happen! Is it even possible to include PHP code in a CSS file? ...

Can Keyboarddatepicker automatically format the date?

We are utilizing material ui Keyboarddatepicker in our React application and have specified the date format using props as format=DD/MMM/YYYY, resulting in dates being displayed like "10/12/2020". The date picker functions perfectly when selecting a date. ...

The row in the table is not reaching its maximum height

Trying to design a layout with a topbar followed by a split layout has posed some challenges. The main issue I encountered was the need for the width and height to adjust automatically based on the browser size. To address this, I attempted to use a table ...

Using MUI material in Reactjs to apply a ternary condition on an onclick event

I am currently working on developing an event-calendar application using React. The code I have written so far is responsible for adding date items to the calendar list. My goal is to enable users to add more dates when they click on the "add date" button, ...

Tips on customizing the appearance of mat-card-title within a mat-card

Is there a way to truncate the title of a mat card when it overflows? I tried using the following CSS: overflow:hidden text-overflow:ellipsis white-space: nowrap However, the style is being overridden by the default mat-card style. I attempted to use mat ...

The outer border of the Angular Material Mat Grid List is beautifully highlighted

In my project, I have a mat grid list where users can define the number of rows and columns. My goal is to display borders around each mat-grid-title cell. However, I am struggling to properly display the outermost black border for the entire mat-grid-lis ...

React Object is throwing an error - not a function

I need assistance resolving this issue. The error Object(...) is not a function keeps appearing in my code. Here is the snippet of code that seems to be causing the problem: It centers around the declaration of const useStyles = makeStyles(() => ({. ...

What are some ways to make the search bar on my website smaller in both length and width?

I have a WordPress website with the ivory search plugin installed for the search functionality. You can check out my website at www.osdoc.in. I am looking to make the search bar shorter and narrower as it is currently causing the menu icons to encroach on ...

Troubleshooting a problem with the Bootstrap dropdown menu

Can anyone assist with an issue regarding Bootstrap 4.4.1? I am facing a problem where two consecutive dropdown links+menus are not displaying correctly. The second dropdown menu is showing the content of the previous link instead of its own, even though t ...

What’s the best method for enclosing a table and text within a div?

The following code snippet generates the following output: However, my desired outcome is this: When I remove <div>hello world</div>, the table fits perfectly within the outer div. But when I add text to the div along with the table, it doesn ...

What is the best way to list the choices associated with a specific category?

The Node.js package I'm currently working with requires an argument of a specific type, which I can see is defined through a TypeScript declaration as follows: export declare type ArgType = 'A' | 'B' | 'C'; I am interes ...

When loading MUI Autocomplete/TextField with React and MaterialUI, the value is not being rendered upon mounting

I am currently implementing Material UI's Autocomplete component along with their TextField component. Most parts are functioning as anticipated except for one issue. Upon initial render, the TextField does not display its input value. Although I have ...

Limit a div to only accept a specific stylesheet

Currently, I am immersed in a project that involves HTML5, MVC 4, CSS 3, JQuery, and LINQ. We have meticulously designed styles for various ui, li, and other html controls within the project. However, I now face the challenge of integrating a JQ Grid (htt ...

Creating a user interface library using Storybook

Currently, I am in the process of developing a UI library for my organization using React with Material-UI as a peer dependency in the package.json file. I wanted to incorporate Storybook to create a playground for the components I am constructing. However ...