Skip to content

Commit

Permalink
Change table dropdown text
Browse files Browse the repository at this point in the history
- to match designs, and make it more readable
- also add this to a test
  • Loading branch information
andysellick committed Nov 21, 2024
1 parent 5bfce00 commit c73450f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ en:
characters: characters
words: words
chart:
table_dropdown: Data table
table_dropdown: View data as a table
accessibility_html: This chart is a visual representation of the data available in the table.
accessibility_link: Skip to "%{chart_heading}" data table
accessibility_heading: Data table for "%{chart_heading}"
Expand Down
1 change: 1 addition & 0 deletions spec/components/chart_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def component_name
it "renders when given valid data" do
render_component(data)
assert_select '.gem-c-chart.govuk-\!-margin-bottom-3', 1
assert_select ".govuk-details__summary-text", text: "View data as a table"
end

it "renders the correct table data horizontally" do
Expand Down

0 comments on commit c73450f

Please sign in to comment.