nhsbsa / frontend-toolkit

Apache License 2.0
3 stars 1 forks source link

Table #10

Closed gazjoy closed 4 years ago

gazjoy commented 4 years ago

What

Give a brief description of the style, component or pattern you want to propose.

This may seem like a duplicate of the Table pattern in the GOV design system but it isn't. For the table I am referring to a pattern which makes a table behave nicely on a mobile sized screen. I'm not sure if we want to be more specific with that on the issue name, "responsive table"?

Small localhost_3000_statement_schemeReference=2008 schemeYear=2007_2008(iPhone 5_SE)

Medium localhost_3000_statement_schemeReference=2008 schemeYear=2007_2008(iPad)

Large localhost_3000_statement_schemeReference=2008 schemeYear=2007_2008

Why

Explain why you think this should be added to the BSA Design System.

This is useful for larger tables which need to be displayed on smaller screens. Most NHS Trusts and businesses have very long names which need to be displayed for example: "Birmingham and Solihull Mental Health NHS Foundation Trust".

  • What evidence do you have that it's needed?

Users need to be able to access our service on a mobile device.

  • What evidence do you have that it meets the needs of the users of BSA services?

For the pensions service we have to show a history of pension membership. These memberships can be very complicated and overlap. The simplest way to represent this visually at the minute is to use a table. However the information does not read well on smaller screens without the addition of the responsive table code.

  • Have you checked that it doesn't already exist in the GOV.UK Design System or BSA Design System?

A table does exist in the GOV.UK design system but not a responsive one.

Anything else

Include links to any examples, research or code to support your proposal, if available.

Our CSS https://github.com/nhsbsa/nhs-pension-prototype-swoosh/blob/master/app/v6/assets/sass/components/_responsive-table.scss

We have initially used the code from here: https://github.com/Fenwick17/responsive-tables with a few minor tweaks for our needs.

helenspires commented 4 years ago

Added to https://github.com/nhsbsa/design-system/issues/17