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

[CdkTable] Provide a possibility to set the top offset for the sticky header #14463

Open
ffriedl89 opened this issue Dec 11, 2018 · 4 comments
Open
Labels
area: material/table 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

Comments

@ffriedl89
Copy link

Please describe the feature you would like to request.

I would like to have the possibility to set the top offset for the sticky header in the cdk table.

What is the use-case or motivation for this proposal?

As you can see in this stackblitz there are certain layouts that would need to have a different value set a sticky header-row / row. If you have any other element above that has position fixed or sticky you might want to change the top value that gets set by the stickyStyler.

Maybe a solution would be to provide a token for DI that can be used to set this value to something different than 0.

Is there anything else we should know?

@andrewseguin andrewseguin added 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 labels Dec 11, 2018
@ffriedl89
Copy link
Author

@andrewseguin would you be open to accepting a PR for this?

@angular-robot
Copy link
Contributor

angular-robot bot commented Feb 1, 2022

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

@angular-robot
Copy link
Contributor

angular-robot bot commented Feb 22, 2022

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

@noguespi
Copy link

This is still a problem today. You can add an offset using css with :

    .mat-table-sticky {
      top: 63px !important;
    }

But it would be great to have a way to set it dynamically so we don't have to rely on fixed value.

@andrewseguin andrewseguin removed their assignment Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/table 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
No open projects
Table
  
Awaiting triage
Development

No branches or pull requests

4 participants