-
Notifications
You must be signed in to change notification settings - Fork 0
Label overflow hidden when ItemTableFilter isn't focused #156
Comments
Currently, I am working to find a way to set
This is saying that if the I have found some articles that suggest that adding a parent container and setting one overflow value there and the other overflow value on the child element but I have not been able to get that to properly work. |
Visually, it appears that we might be running into issues with the floating label limitation of the MUI TextField. |
In order to get the filter labels to have their overflow hidden in the X direction, we had to break down the By doing this we were able to wrap the component in a const useStyles = makeStyles({
filterContainer: {
overflowX: "hidden"
},
});
const classes = useStyles();
<Box classes={{ root: classes.filterContainer }} >
{/*This Box component is the parent of FormControl and is overflow is hidden. */}
<FormControl color="secondary" fullWidth margin="dense" size="small" variant="outlined">
{/*
FormContrl is the parent of InputLabel.
By default, overflow is set to "visible" so the label can overflow,
but because FormControl can't overflow the Box in the X direction neither can the InputLabel.
*/}
<InputLabel htmlFor={label}>{label}</InputLabel>
<OutlinedInput
id="component-outlined"
onChange={onChange}
label={label}
/>
</FormControl>
</Box> |
Opening until PR is closed. |
Waiting for me. |
What Happened
When filtering the table, if the current filter is not focused then the label for that filter has its overflow hidden. This causes the label to be cut off. The overflow is hidden this way because when there is no value in the filter some of the labels like Last Updated, overflow the filter container in the X direction on smaller screens.
Expected Behavior
Instead, the label should have the overflow hidden in just the X direction and be visible in the Y direction.
Current Behavior:

Expected Behavior:

Steps to Reproduce
Logs
The text was updated successfully, but these errors were encountered: