The overflow: hidden property fails to conceal objects within a flex-box on Safari for iOS devices

My meter is supposed to have this shape: Correct Bar

But on iOS Safari, it looks like this

It appears that the overflow: hidden property of the meter box is not functioning properly on iOS Safari.

The issue lies with a meter bar inside a meter box with overflow set to hidden and enclosed within a meter container.

This is my current code

.meter-container {
  display: flex;
  align-items: center;
  margin-left: auto;
  width: 80%;
  height: 30%;
  margin-bottom: 1%;
  margin-right: 0;
}
.meter {
  margin-left: auto;
  overflow: hidden;
  width: 70%;
  height: 100%;
  border: 1px solid rgb(241, 241, 241);
  background-color: rgb(224, 224, 224);

  border-radius: 25px 0px 25px 0px;
}

.meter-bar {
  margin-top: -1px;
  margin-left: -1px;
  height: 100%;
  background-color: teal;
  border-radius: 0px 0px 25px 0px;
}

Answer №1

Could this problem be related to the height?

.meter-container {
  flex: 0 0 auto; /* making sure the height is set correctly */

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

What's the best way to implement asynchronous state updating in React and Redux?

In my React incremental-style game, I have a setInterval function set up in App.ts: useEffect(() => { const loop = setInterval(() => { if (runStatus) { setTime(time + 1); } }, rate); return () => clearInterval(lo ...

Personalize the material design datatable checkbox option

Recently, I delved into the world of material-ui design in conjunction with ReactJS. However, I have encountered a roadblock while attempting to customize the style of a checkbox that is being displayed under the <TableRow /> component. (Check out th ...

Is it possible to use Bootstrap's Accordion or Alert styles with HTML elements <details> and <summary>?

For my projects, I typically utilize Bootstrap for styling and usually do not include any Javascript as it is unnecessary. However, I am now working on a project that requires a feature similar to Bootstrap's Accordion, which does require Javascript t ...

Utilizing Electron to save editable user data in a .txt file

I am making an electron app that converts data from .txt files to Javascript arrays. This data is stored inside a folder called faces in the main directory. I also have a button in my app which, when clicked opens file explorer at the faces folder so the u ...

Obtaining information from Sanity results in an undefined value (using Next.js + Sanity)

I am working on a page where I need to incorporate some real-time updates. These updates will be initially stored in Sanity and then retrieved using Next.js. Here is my Sanity schema: export default{ name:"actuality", title:"Aktuali ...

Signing up for event using react leaflet

I've been working on integrating React-Leaflet into my Create React App. I've successfully overlaid GeoJSON data on a base map, but I'm struggling to register clicks on this layer. While troubleshooting this problem, I came across a helpful ...

What is the method for obtaining a unique id that changes dynamically?

Having trouble accessing the dynamically generated ID in jQuery? It seems to work fine in JavaScript but not in jQuery. Here's an example of the issue: My jQuery code: var img = $("#MAP"+current_img_height); $("#map").css({'height': img.h ...

Adjust the color of the bootstrap navbar upon resizing the screen

Attempting to modify the background color for the navbar menu items on smaller screen sizes. An issue arises in the following scenario: Browser window is resized until hamburger menu appears Hamburger menu is clicked to display menu i ...

Should the index.js file in Next.js serve as the homepage or solely as the initial starting point?

Should I integrate my homepage directly into the index.js file, or create a separate "home-page.js" file in the pages directory? Is index.js just for initializing the application, or can it serve as a standalone page? Alternatively, should I have index.j ...

Placing icons in a div at arbitrary positions using VueJS

I am looking to create a unique div where I can position multiple material design icons randomly. For example: Link to Example Image Previously, I achieved this using jQuery. Now, I want to achieve the same result using VueJS with material design icons ...

Updating React props using useState?

Below is a component that aims to enable users to update the opening times of a store. The original opening times are passed as a prop, and state is created using these props for initial state. The goal is to use the new state for submitting changes, while ...

What is the significance of using composability over the deprecated method in Reactjs Material-UI menuItems?

I have taken over a project that was built using an older version of react, and I am currently in the process of updating it. However, I encountered console errors right off the bat. Error : bundle.js:6263 Warning: The "menuItems" property of the "Left ...

Is it possible to pass a class method to an onClick event from within the render method in ReactJS?

Excuse my lack of experience, but I haven't been able to find a solution to this yet. I am attempting to utilize a class method as a callback for the onClick event in my JSX. Below is the code for my App component: import React from 'react&apo ...

What is the best way to pass an array to a child component in React?

I am having an issue where only the first element of inputArrival and inputBurst is being sent to the child component Barchart.js, instead of all elements. My goal is for the data to be instantly reflected as it is entered into Entrytable.js. EntryTable.js ...

Obtaining the Froala text editor's instance in React: A step-by-step guide

Is there a way to access the Froala editor instance within my React components? I've noticed that the official Froala documentation doesn't provide instructions for achieving this in React, only in jQuery. ...

Align the items in the Material UI grid centrally within the grandparent grid container

Here is a Grid component that I am working with: <Grid container height="100vh" direction="column"> <Grid item alignSelf="flex-end"> <Button variant="text">List Your Property</Button> ...

Is it possible to alter the table information while hovering over it?

I currently have a table structured like this: <div class="footer_row_3"> <table class="tableA"> <tr> <td><img class="popcorn" src="http://i.imgur.com/HUjq2Va.png"></td> <td><span cla ...

How can I add color to arrow icons in tabulator group rows?

Is there a way to specify the color of the arrows in collapsed/expanded group rows? Also, what CSS code should I use to define the font color for column group summaries? You can view an example of what I am trying to customize here: https://jsfiddle.net/s ...

Creating entities using @Composable functions

Referring to documentation: https://github.com/androidx/androidx/blob/androidx-main/compose/docs/compose-api-guidelines.md#naming-unit-composable-functions-as-entities The development of Jetpack Compose framework and libraries requires that any function r ...

Implementing Typescript for React Navigation: Configuring navigationOptions effectively

Within a React Native app utilizing React Navigation, I am working on a screen component where I aim to set the title based on given parameters using the navigationOptions property like so: static navigationOptions = ({navigation}) => ({ title: nav ...