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

Documentation for the messages pattern #932

Merged
merged 27 commits into from
May 17, 2018
Merged

Conversation

ian-leggett
Copy link
Contributor

@ian-leggett ian-leggett commented Apr 3, 2018

Problem

See issue - hmrc/design-patterns#44

Solution

Messages now displayed in a data table with two states - read and unread

Example Screenshot

Read

screen shot 2018-05-17 at 11 51 54

Unread

screen shot 2018-05-17 at 11 51 41

@ian-leggett ian-leggett changed the title Documenting the messages pattern Documentation for the messages pattern Apr 3, 2018
Copy link
Contributor

@fordie fordie 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 to me

Copy link
Contributor

@rpowis rpowis left a comment

Choose a reason for hiding this comment

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

I'm not convinced we need 2 examples if we only have a single list of messages. We can just display both states in the same example.

Also, @fordie have you built the example you're testing as a table? Have you been accessibility testing for that? If not I suggest we move to divs before it ends up becoming too hard to change later on.

@@ -0,0 +1,24 @@
.messages-table {
.messages-table__row {
.message-table__data {
Copy link
Contributor

Choose a reason for hiding this comment

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

These selectors shouldn't be nested as it makes the specificity too high.

One of the benefits of BEM is that it allows the targeted selection of elements (which reduces specificity) while avoiding naming collisions.

@@ -0,0 +1,23 @@
<table id="messagesTable" class="messages-table">
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this should be a table as it's not tabular data. It also won't collapse well on smaller viewports.

@@ -0,0 +1,23 @@
<table id="messagesTable" class="messages-table">
Copy link
Contributor

Choose a reason for hiding this comment

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

Likewise here. This shouldn't be a table.

@fordie
Copy link
Contributor

fordie commented May 14, 2018

@rpowis no, I've been waiting for @ian-leggett to produce this version which he's run past Chris

Ian Leggett and others added 6 commits May 15, 2018 15:15
…ark Ford was using. Decided it wasn't needed.
Made a couple of changes to meet style.
Remove 'Example' from front of subjects
Remove 'Example' from front of subjects
Moved unread and read examples under 'Message list'.
@mikeash82 mikeash82 merged commit cbaf161 into master May 17, 2018
hmrc-web-operations pushed a commit that referenced this pull request May 17, 2018
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.

7 participants