SamProf / MatBlazor

Material Design components for Blazor and Razor Components
http://www.matblazor.com
MIT License
2.84k stars 385 forks source link

Add Disabled property in MatTab #472

Open EduVencovsky opened 4 years ago

EduVencovsky commented 4 years ago

It would be good to have a easy way to disable a MatTab by just passing a prop.

enkodellc commented 4 years ago

@EduVencovsky There are plenty of examples of the Disabled property on other components to edit the css. It looks like you have contributed already so do you want to take on this small enhancement as well?

sramaswami11 commented 3 years ago

I am not sure if this is even a supported feature in MatTab, see the MDCTabBar issue where they were discussing this :

"Currently, tabs should not (and was not built to be) disabled if unavailable. From the spec: "Disabled states cannot be inherited by: ... navigational components (such as app bars, tabs, bottom navigation and steppers)". However, we're in the process of revisiting and clarifying this with design."

url : https://github.com/material-components/material-components-web/issues/6386