patternfly-design icon indicating copy to clipboard operation
patternfly-design copied to clipboard

Nav component doesn't have a disabled state for links

Open matthewcarleton opened this issue 6 years ago • 12 comments
trafficstars

In the docs there is a .pf-m-disabled for .pf-c-nav__link but no styles for the state were written.

matthewcarleton avatar Aug 27 '19 13:08 matthewcarleton

Hi @matthewcarleton is this issue currently blocking you?

rachael-phillips avatar Aug 28 '19 13:08 rachael-phillips

@rachael-phillips no it's not. I noticed it just by chance.

matthewcarleton avatar Aug 28 '19 14:08 matthewcarleton

I think I'm going to remove this disabled modifier from the docs until we determine the need for the disabled styling/have designs for it. Does that sounds ok @mcarrano @kybaker

christiemolloy avatar Oct 07 '19 18:10 christiemolloy

OK with me @christiemolloy @kybaker do you see any need for this? Did we ever design a disabled state for nav items?

mcarrano avatar Oct 08 '19 13:10 mcarrano

I did some quick digging on this I see that Bootstrap, Material design, and Polaris all offer a disabled state for navigation items. This how Material explains it:

Display actions as disabled when they can only be used sometimes, under certain conditions. They should be displayed as disabled rather than removing them.

https://getbootstrap.com/docs/4.3/components/navs/#base-nav https://polaris.shopify.com/components/navigation/navigation

Worth considering @mcarrano @kybaker ?

matthewcarleton avatar Oct 08 '19 15:10 matthewcarleton

We may need this for cloud.redhat.com - we have been exploring the option to show users sections that they are not yet entitled to use.

jeperry avatar Oct 08 '19 16:10 jeperry

@mceledonia We included the disabled state in the initial nav updates, but made many assumptions in doing so. As a result, the disabled states didn't pass color contrast testing.

image

mattnolting avatar Apr 09 '20 13:04 mattnolting

@mattnolting Disabled UI elements aren't required to meet contrast ratios, but I think we can still improve the visuals/contrast. I'll try something soon and get back to you on here.

CC @mcoker @mcarrano

mceledonia avatar Jun 23 '20 21:06 mceledonia

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in 30 days if no further activity occurs.

stale[bot] avatar Sep 20 '20 02:09 stale[bot]

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in 30 days if no further activity occurs.

stale[bot] avatar Dec 05 '20 05:12 stale[bot]

Going to take a look at this, for real this time!

mceledonia avatar Jan 05 '21 20:01 mceledonia

I am going to move this to our design backlog but will not add to the roadmap until or unless we have a specific product use case for this.

mcarrano avatar Sep 29 '21 15:09 mcarrano

Per discussion today with @mceledonia @lboehling @mmenestr we agreed this should be closed. If nav items are unavailable we should either hide or display and empty state.

mcarrano avatar Sep 20 '22 13:09 mcarrano