Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX Fixes Stacking* HTML repr - #23097

Merged
jeremiedbb merged 9 commits into
scikit-learn:mainfrom
thomasjpfan:stacking_display_html_fix
Apr 19, 2022
Merged

FIX Fixes Stacking* HTML repr#23097
jeremiedbb merged 9 commits into
scikit-learn:mainfrom
thomasjpfan:stacking_display_html_fix

Conversation

@thomasjpfan

@thomasjpfan thomasjpfan commented Apr 10, 2022

Copy link
Copy Markdown
Member

This PR fixes the HTML repr for stacking. To fix it, I needed to rethink how the edges are shown. In summary, this PR moves all the z-index and position: relative styles into the serial and parallel selectors.

Looking at the stacking example main there is a CSS bug: (There is a line through the center)

main

Screen Shot 2022-04-17 at 5 42 17 PM

This PR

Screen Shot 2022-04-17 at 5 43 30 PM

#$id div.sk-label label {
font-family: monospace;
font-weight: bold;
background-color: white;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

On some browsers this background color hides the dashed line on the top. Removing it is enough to fix it.

@thomasjpfan

Copy link
Copy Markdown
Member Author

Here is the rendered stacking example.

Placing on 1.1 since HTML is going to be the new default.

@thomasjpfan thomasjpfan added this to the 1.1 milestone Apr 10, 2022
@thomasjpfan thomasjpfan changed the title DOC Fixes Stacking* HTML repr FIX Fixes Stacking* HTML repr Apr 10, 2022

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@jeremiedbb
jeremiedbb merged commit 96f95f2 into scikit-learn:main Apr 19, 2022
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants