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

dashboard example: minor fix #36608

Merged
merged 4 commits into from Jun 29, 2022
Merged

dashboard example: minor fix #36608

merged 4 commits into from Jun 29, 2022

Conversation

techvanity
Copy link
Contributor

dashboard.css (and rtl version) contain rules for .sidebar-sticky, but these are not being applied currently.

@ffoodd
Copy link
Member

ffoodd commented Jun 20, 2022

Reading .position-sticky on the same elements makes me wonder if the CSS shouldn't be dropped, instead of adding the class name in markup?

Thoughts, @julien-deramond? Might be a leftover from peeviois refactors.

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

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

Confirm what's been said by @ffoodd: .sidebar-sticky has been removed in 0ca2cf4 in favor of .position-sticky.
In this PR @techvanity you can drop .sidebar-sticky rules in both dashboard.css/dashboard.rtl.css files rather than using .sidebar-sticky in the markup.

@ffoodd
Copy link
Member

ffoodd commented Jun 21, 2022

I think the RTL file is generated, isn't it?

@julien-deramond
Copy link
Member

I think the RTL file is generated, isn't it?

Yep it is possible to modify dashboard.css and then to run npm run css-prefix-examples-rtl to regenerate/modify dashboard.rtl.css.

@techvanity
Copy link
Contributor Author

techvanity commented Jun 21, 2022

Confirm what's been said by @ffoodd: .sidebar-sticky has been removed in 0ca2cf4 in favor of .position-sticky. In this PR @techvanity you can drop .sidebar-sticky rules in both dashboard.css/dashboard.rtl.css files rather than using .sidebar-sticky in the markup.

@julien-deramond and @ffoodd
I beg to differ. Those styles are important, especially setting height and overflow-y so that the sidebar is scrollable when number of items is large. I just tested it - scrolling breaks upon removing that css.

@julien-deramond
Copy link
Member

julien-deramond commented Jun 21, 2022

@julien-deramond and @ffoodd I beg to differ. Those styles are important, especially setting height and overflow-y so that the sidebar is scrollable when number of items is large. I just tested it - scrolling breaks upon removing that css.

You're right indeed we can see the issue while reducing the window vertically. So I'd say you can keep your modification (addition of .sidebar-sticky) and remove in both CSS files the unused/useless rules. I haven't tested it but I'm thinking of padding-top already set with .pt, probably position: relative if it becomes useless and some others.
dashboard-rtl/index.html file should be modified as well to use .sidebar-sticky.

@techvanity techvanity requested a review from a team as a code owner June 21, 2022 11:29
@techvanity
Copy link
Contributor Author

Made the requested changes.
Thanks

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @techvanity for this PR!

@julien-deramond julien-deramond added this to In progress in v5.2.0-stable via automation Jun 21, 2022
@julien-deramond julien-deramond moved this from In progress to Reviewer approved in v5.2.0-stable Jun 21, 2022
@julien-deramond julien-deramond merged commit d4aee02 into twbs:main Jun 29, 2022
v5.2.0-stable automation moved this from Reviewer approved to Done Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v5.2.0-stable
  
Done
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants