carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
[Table] Page selection grows too large on MacOS
What package is this for?
- [x] React
- [ ] Angular
Describe the bug
I think this is a bug but it may be limited by macOS. It just looks untidy on mac. When there are a lot of pages in the table, the drop down becomes huge & takes over & obscures the page 'button' you just pressed.
To Reproduce
Steps to reproduce the behaviour:
-
Using MacOS & Chrome
-
Go to https://carbon-addons-iot-react.com/?path=/story/1-watson-iot-table--with-pagination
-
Change the ‘Total items in data prop’ in the ‘Knobs’ tab to 1000
-
Observe the drop down explodes beyond the page
-
Using Windows & Chrome
-
Go to https://carbon-addons-iot-react.com/?path=/story/1-watson-iot-table--with-pagination
-
Change the ‘Total items in data prop’ in the ‘Knobs’ tab to 1000
-
Observe the drop down is more contained & aligns with the drop down 'button' that was pressed
Expected behaviour
I think the Mac behaviour should be the same as the Windows one.
Environment/versions:
- OS: MacOS
- Browser: Chrome
This is the behavior of all native dropdowns in that browser, and while it's not pretty, it does work (scrolling with your mouse wheel, you can get to any item). There isn't much we can do except swap the native dropdown for a Carbon one, opening upwards. This would be a story rather than a bug.