-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sites - In table options, The hide button doesn't work #94762
Comments
What I've found so far:
This is happening because of a known upstream issue where the expected field label type is a string. We're using React elements:
We have I'd recommend working with core to fix these upstream. |
@jameskoster thoughts on who would be good to ping on this on the core side of things? |
There is something weird about the hover color vs. the DataViews example:
It doesn't stay grayed out on hover like the example. |
I see there's now a |
I opened these two PRs to improve the experience:
The hide icon is still visible, though. |
@jorgefilipecosta worked on this recently. If the tooltip is problematic maybe we simplify; "Hide" / "Show"? When field visibility cannot be toggled the button should be rendered as |
Closing stale, I think this might have already been fixed upstream as I was able to revert back to using labels in the override cleanup a while back. New file location here: https://github.com/Automattic/wp-calypso/blob/trunk/client/sites/components/Nsites-dataviews/index.tsx#L127 |
Description
There are two related issues related to this:
Expected
We should not see [object Object] and the hide icon once clicked should hide the column. If we can't get that to work for one reason or another, we should hide this icon altogether.
The text was updated successfully, but these errors were encountered: