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

Task list and inconsistent column widths #5519

Open
DarrenBrownPhoto opened this issue Nov 21, 2024 · 2 comments
Open

Task list and inconsistent column widths #5519

DarrenBrownPhoto opened this issue Nov 21, 2024 · 2 comments
Labels
awaiting triage Needs triaging by team 🐛 bug Something isn't working the way it should (including incorrect wording in documentation)

Comments

@DarrenBrownPhoto
Copy link

image

We are using the new version of the task list with embedded helper text. However, depending on the length of the helper text, the statuses all have different widths - and it doesn't look great. Is this intentional or should we set a minimum width for the status column?

@DarrenBrownPhoto DarrenBrownPhoto added awaiting triage Needs triaging by team 🐛 bug Something isn't working the way it should (including incorrect wording in documentation) labels Nov 21, 2024
Copy link

Uh oh! @DarrenBrownPhoto, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

@selfthinker
Copy link

selfthinker commented Dec 6, 2024

A bit more context from the discussion we had on Slack about this...

Every row is one li with two divs. The list items are styled like their own table (with display: table) and the divs are styled like table cells (with display: table-cell). What you might generally expect is that the whole list is styled like a table and the list item like a table row. That way this wouldn't happen.

@frankieroberto mentioned:

It was kind-of deliberate, so that the 'divide' between the title and the status is flexible, so that if you have a row with a long task name and a short status and a row with a short task name but a long status, then they'd both still use the maximum available space.

An example that illustrates this behaviour (from Frankie):
A row with a long task name and a short status and a row with a short task name but a long status, with neither of statuses wrapping, only the long task name is.

One way to fix this within a service without fixing the whole component is to use  s between words in a status.

But I'd like to look into pros and cons of fixing it for the whole component on the Design System side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage Needs triaging by team 🐛 bug Something isn't working the way it should (including incorrect wording in documentation)
Projects
None yet
Development

No branches or pull requests

2 participants