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

Tidy up the info/warning panel and fix title/no title output #73

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

zerolab
Copy link
Contributor

@zerolab zerolab commented Jan 10, 2025

What is the context of this PR?

This came up in a couple of conversations (Mike, Julia/Gill) and the main question was "where is the information panel?" (and "what is warn (branded) or ghost?")

So this PR tidies up the panel block choices remove the ones that are not listed on https://service-manual.ons.gov.uk/design-system/components (and dropping bare too). It adds the "information" choice and fixes the output for it when there is no title

Befor After
Screenshot 2025-01-10 at 12 10 55 Screenshot 2025-01-10 at 12 11 05

How to review

Add a panel block on an information page or methodology page and check its output with various types.

Note

The panel component has an issue where the title overlaps the icon for the warning and announcement variants. DS issue for warning

Follow-up Actions

N/A

@zerolab zerolab requested a review from a team as a code owner January 10, 2025 12:16
Copy link
Contributor

@nehakerung nehakerung left a comment

Choose a reason for hiding this comment

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

Information panel/Error/Success looks good but I think warning and announcement need some TLC - will it be necessary to fix this now or shall it be pushed for later?

Screenshot:
Screenshot 2025-01-10 at 14 06 23

@zerolab
Copy link
Contributor Author

zerolab commented Jan 10, 2025

@nehakerung thank you for the comprehensive testing. As the note in PR description says, warning and announcement have an issue, and that was flagged to the Design System team. We're using the component directly, so it needs fixing in the DS. Perhaps @helenb could help with that when she does some DS work

Copy link
Contributor

@AdamHawtin AdamHawtin left a comment

Choose a reason for hiding this comment

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

Looks good, apart from the already noted issues 👍

@nehakerung nehakerung self-requested a review January 10, 2025 14:30
Copy link
Contributor

@sanjeevz3009 sanjeevz3009 left a comment

Choose a reason for hiding this comment

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

Worked as expected! LGTM =)

@zerolab zerolab merged commit 69d21e3 into main Jan 13, 2025
9 checks passed
@zerolab zerolab deleted the chore/info-panel-choices-tweak branch January 13, 2025 13:01
ababic added a commit that referenced this pull request Jan 16, 2025
* main:
  Update the embed block to be a custom video embed that uses the design system video embed template (#62)
  Django Migration Linter Integration (#43)
  Tidy up the info/warning panel and fix title/no title output (#73)
  Introduce Functional Tests using Playwright and Behave #31

# Conflicts:
#	poetry.lock
#	pyproject.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants