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

EZP-30232: Item highlight is cropped in Content Tree with scroll #156

Conversation

tischsoic
Copy link
Contributor


.m-tree__scrollable-wrapper {
> .c-list {
display: table;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also tried solutions with

  • display: inline-block
  • display: flex; align-items: stretch; on .m-tree__scrollable-wrapper
    but they didn't work. I know that table layouts are taboos in CSS world but this solutions seems to work perfectly.

If you have better idea @dew326 I will gladly hear it. 🙂

Copy link
Contributor Author

@tischsoic tischsoic Mar 6, 2019

Choose a reason for hiding this comment

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

Do we want to move this to _main.scss or leave it here? I added it here because it styles c-list.

Copy link
Member

Choose a reason for hiding this comment

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

I think adding hover state on c-list-item__link should solve the problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's interesting idea, but it won't work with shorter items - we want all highlights to stretch to the right side of the container. Problematic example:

screen shot 2019-03-06 at 14 21 32

screen shot 2019-03-06 at 14 18 25

@micszo micszo self-assigned this Mar 6, 2019
@micszo micszo removed their assignment Mar 6, 2019
@lserwatka lserwatka merged commit 3e287d1 into master Mar 6, 2019
@lserwatka lserwatka deleted the EZP-30232-item-highlight-is-cropped-in-Content-Tree-with-scroll branch March 6, 2019 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants