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

Page: add scrollbar ID to use in image renderer #88214

Merged
merged 2 commits into from
May 24, 2024

Conversation

AgnesToulet
Copy link
Contributor

What is this feature?
This PR adds an ID to the main dashboard page scrollbar so we can rely on it in the image renderer instead of the class, which can be used in multiple places and could be more easily updated.

Special notes for your reviewer:
Works in combination with: grafana/grafana-image-renderer#524

Note that we will still support the class in the image renderer for a few versions to allow time for users to upgrade.

@AgnesToulet AgnesToulet added area/frontend no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels May 23, 2024
@AgnesToulet AgnesToulet requested a review from juanicabanas May 23, 2024 09:52
@AgnesToulet AgnesToulet requested review from a team as code owners May 23, 2024 09:52
@AgnesToulet AgnesToulet requested review from Sergej-Vlasov, kaydelaney, Clarity-89 and ashharrison90 and removed request for a team May 23, 2024 09:52
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.1.x milestone May 23, 2024
@AgnesToulet AgnesToulet modified the milestone: 11.1.x May 23, 2024
@@ -26,6 +26,7 @@ interface Props {
autoHeightMin?: number | string;
updateAfterMountMs?: number;
onScroll?: React.UIEventHandler;
divId?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it finally work with id naming?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it doesn't, I think it clashes with the existing HTML attribute id.

@AgnesToulet AgnesToulet merged commit f866157 into main May 24, 2024
28 checks passed
@AgnesToulet AgnesToulet deleted the agnestoulet/add-scrollbar-id branch May 24, 2024 15:28
@kevinwcyu kevinwcyu modified the milestones: 11.1.x, 11.1.0 Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants