Skip to content

Info panel list design - #25287

Closed
david-szabo97 wants to merge 5 commits into
trunkfrom
update/info-list-design
Closed

david-szabo97 wants to merge 5 commits into
trunkfrom
update/info-list-design

Conversation

@david-szabo97

Copy link
Copy Markdown
Member

Description

We merged a PR that added character count to the info panel. This made the design a little bit off and we were discussing changing the info panel to a list view rather than columns.

This PR aims to change the current columns view to a list view to make the info panel easier to scan.

Screenshots

image

Types of changes

Design change

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

@david-szabo97 david-szabo97 added [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. labels Sep 14, 2020
@david-szabo97 david-szabo97 self-assigned this Sep 14, 2020
@github-actions

github-actions Bot commented Sep 14, 2020 •

Copy link
Copy Markdown

Size Change: +92 B (0%)

Total Size: 1.21 MB

Filename Size Change
build/editor/index.js 43.1 kB +13 B (0%)
build/editor/style-rtl.css 3.89 kB +38 B (0%)
build/editor/style.css 3.89 kB +41 B (1%)
ℹ️ View Unchanged
Filename Size Change
build/a11y/index.js 1.14 kB 0 B
build/annotations/index.js 3.78 kB 0 B
build/api-fetch/index.js 3.45 kB 0 B
build/autop/index.js 2.84 kB 0 B
build/blob/index.js 665 B 0 B
build/block-directory/index.js 8.72 kB 0 B
build/block-directory/style-rtl.css 943 B 0 B
build/block-directory/style.css 942 B 0 B
build/block-editor/index.js 130 kB 0 B
build/block-editor/style-rtl.css 11.1 kB 0 B
build/block-editor/style.css 11.1 kB 0 B
build/block-library/editor-rtl.css 9.02 kB 0 B
build/block-library/editor.css 9.02 kB 0 B
build/block-library/index.js 146 kB 0 B
build/block-library/style-rtl.css 7.84 kB 0 B
build/block-library/style.css 7.85 kB 0 B
build/block-library/theme-rtl.css 837 B 0 B
build/block-library/theme.css 838 B 0 B
build/block-serialization-default-parser/index.js 1.88 kB 0 B
build/block-serialization-spec-parser/index.js 3.1 kB 0 B
build/blocks/index.js 48.1 kB 0 B
build/components/index.js 172 kB 0 B
build/components/style-rtl.css 15.2 kB 0 B
build/components/style.css 15.2 kB 0 B
build/compose/index.js 9.81 kB 0 B
build/core-data/index.js 12.5 kB 0 B
build/data-controls/index.js 772 B 0 B
build/data/index.js 8.77 kB 0 B
build/date/index.js 31.8 kB 0 B
build/deprecated/index.js 768 B 0 B
build/dom-ready/index.js 571 B 0 B
build/dom/index.js 4.46 kB 0 B
build/edit-navigation/index.js 11.2 kB 0 B
build/edit-navigation/style-rtl.css 881 B 0 B
build/edit-navigation/style.css 885 B 0 B
build/edit-post/index.js 306 kB 0 B
build/edit-post/style-rtl.css 6.41 kB 0 B
build/edit-post/style.css 6.39 kB 0 B
build/edit-site/index.js 22.4 kB 0 B
build/edit-site/style-rtl.css 3.88 kB 0 B
build/edit-site/style.css 3.88 kB 0 B
build/edit-widgets/index.js 26.4 kB 0 B
build/edit-widgets/style-rtl.css 3.13 kB 0 B
build/edit-widgets/style.css 3.13 kB 0 B
build/editor/editor-styles-rtl.css 480 B 0 B
build/editor/editor-styles.css 482 B 0 B
build/element/index.js 4.65 kB 0 B
build/escape-html/index.js 735 B 0 B
build/format-library/index.js 7.7 kB 0 B
build/format-library/style-rtl.css 547 B 0 B
build/format-library/style.css 548 B 0 B
build/hooks/index.js 2.16 kB 0 B
build/html-entities/index.js 623 B 0 B
build/i18n/index.js 3.57 kB 0 B
build/is-shallow-equal/index.js 712 B 0 B
build/keyboard-shortcuts/index.js 2.52 kB 0 B
build/keycodes/index.js 1.94 kB 0 B
build/list-reusable-blocks/index.js 3.11 kB 0 B
build/list-reusable-blocks/style-rtl.css 476 B 0 B
build/list-reusable-blocks/style.css 476 B 0 B
build/media-utils/index.js 5.34 kB 0 B
build/notices/index.js 1.79 kB 0 B
build/nux/index.js 3.42 kB 0 B
build/nux/style-rtl.css 671 B 0 B
build/nux/style.css 668 B 0 B
build/plugins/index.js 2.56 kB 0 B
build/primitives/index.js 1.43 kB 0 B
build/priority-queue/index.js 791 B 0 B
build/redux-routine/index.js 2.85 kB 0 B
build/reusable-blocks/index.js 3.06 kB 0 B
build/rich-text/index.js 13.2 kB 0 B
build/server-side-render/index.js 2.77 kB 0 B
build/shortcode/index.js 1.69 kB 0 B
build/token-list/index.js 1.27 kB 0 B
build/url/index.js 4.06 kB 0 B
build/viewport/index.js 1.84 kB 0 B
build/warning/index.js 1.14 kB 0 B
build/wordcount/index.js 1.22 kB 0 B

compressed-size-action

@Addison-Stavlo Addison-Stavlo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks much better IMO, and the code style changes make sense. I wasn't present for the original discussions so may want another 👍 from someone that was involved there, but I do think this is definitely a good change.

From
Screen Shot 2020-09-14 at 12 19 52 PM

To
Screen Shot 2020-09-14 at 12 20 53 PM

It definitely feels more organized and readable.

Comment thread packages/editor/src/components/table-of-contents/style.scss

@shaunandrews shaunandrews left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks ok. I worry that all the extra whitespace between the label and the count makes it harder to scan — but the horizontal lines help. In general, I wonder if we should reduce the width of this component?


&:nth-child(4n) {
padding-right: 0;
& + & {

@shaunandrews shaunandrews Sep 14, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a little questionable. I would have expected to add the border to the root selector (.table-of-contents__count) and then added a :first-child to override the border on the first item. The & + & is pretty cryptic and maybe a little too clever.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it is pretty neat, while also a bit cleaner and maybe more robust than adding an extra first-child selector. However, I do agree that & + & will be a bit more difficult to understand if someone has not seen it before. Maybe a short comment would help clarify?

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.

I'd prefer to have & + &. Personally I find it more readable though I understand it might be cryptic for someone who has never seen it before. Added a little comment, let me know if that's all good or we should change it to a less cryptic solution.

@david-szabo97

Copy link
Copy Markdown
Member Author

This looks ok. I worry that all the extra whitespace between the label and the count makes it harder to scan — but the horizontal lines help. In general, I wonder if we should reduce the width of this component?

I guess the width was increased to make sure the previous columns design fit. Less wide popover feels a lot better. See below

Original for reference
image

  1. Without min-width (inherits min-width: 260px)
    image

  2. min-width: 300px
    image

Actually, I prefer the first one (260px). It looks compact and clean. Width grows as needed if there is a long heading.

@Copons Copons left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good to me!
Feel free to merge once we've got the design sign off. 👍

@shaunandrews

Copy link
Copy Markdown
Contributor

I just tried 260px on my local install and it seems to work well. 👍

@david-szabo97

Copy link
Copy Markdown
Member Author

@shaunandrews Removed min-width property. It will now inherit the default popover min-width property which is 260px. Once tests are green and received your approval, I'm happy to merge!

@kellychoffman

Copy link
Copy Markdown
Contributor

This looks ok.

It is still not great to scan/read. My suggestion to make not just "ok" would be to swap the label/value order and make the container narrower:

Screen Shot 2020-10-01 at 12 10 10 PM

@david-szabo97

david-szabo97 commented Oct 2, 2020 •

Copy link
Copy Markdown
Member Author

Kelly's design feels easier to scan, but it feels worse for my eyes. We have empty space on both sides of the box (Headings, Paragraphs and Blocks) which feels strange for me.

I might be biased since I was looking at my own implementation for a while now so I wonder what others think about Kelly's design. 😅

Just for reference:
Untitled design

@david-szabo97

Copy link
Copy Markdown
Member Author

@kellychoffman Pushed a commit! Reduced the width to 220px and changed the layout.

image

@Addison-Stavlo Addison-Stavlo left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The styles and behavior are looking pretty good. I tried to make a ridiculous edge case to see if i could break the layout and it behaves well:

Screen Shot 2020-10-02 at 11 18 38 AM

I do wonder about this reduced width, however. In other languages where the word 'Characters' may be a few characters longer, this information may no longer fit the reduced 220px width. Regardless of that, my first reaction opening the component was 'wow this is very thin'. It may be worth considering increasing the width by 60-80px.

Design wise, this is easier to scan than the previous new design. However the previous also seems a bit more 'clean' feeling. So I guess it depends on what we are going for. If the left column was also aligned left, it would feel a bit more clean and organized. 🤷‍♀️

@mtias

mtias commented Oct 9, 2020

Copy link
Copy Markdown
Member

I also have concerns with how this design blurs the info counts with the document outline, since it's just two vertical lists now.

@mtias

mtias commented Oct 9, 2020

Copy link
Copy Markdown
Member

Also, can we fix the awkward widow while the general design is refined?

image

@david-szabo97 david-szabo97 mentioned this pull request Oct 12, 2020
4 of 6 tasks
Base automatically changed from master to trunk March 1, 2021 15:44
@david-szabo97 david-szabo97 removed their assignment Feb 2, 2023
@Copons
Copons deleted the update/info-list-design branch February 2, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants