Skip to content
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

feat(MatTabsModule): Allow alignTabs and stretchTabs on MAT_TABS_CONFIG #29685

Open
ErickXavier opened this issue Sep 3, 2024 · 0 comments
Open
Labels
area: material/tabs feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions

Comments

@ErickXavier
Copy link
Contributor

Feature Description

As this interfere directly to the design of the elements, I would like to request to include support for alignTabs and stretchTabs on the MAT_TABS_CONFIG configuration.

They can only be set on HTML and should be allow to be set programatically.

Use Case

Whenever we want to set the default design behavior for all Material Tabs.

I believe the use case bellow explains it all:

import {MAT_TABS_CONFIG} from '@angular/material/tabs';
...
@NgModule({
    ...
    providers: [
        {provide: MAT_TABS_CONFIG, useValue: {alignTabs: 'start', stretchTabs: false}}
    ]
})
export class SomeRandomModule {
}```
@ErickXavier ErickXavier added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels Sep 3, 2024
@crisbeto crisbeto added P4 A relatively minor issue that is not relevant to core functions area: material/tabs and removed needs triage This issue needs to be triaged by the team labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/tabs feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

No branches or pull requests

2 participants