diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a5b523e662..9e1ea254f8 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -32,6 +32,7 @@ Changelog * Fix: Document tags no longer fail to update when replacing the document file at the same time (Matt Westcott) * Fix: Prevent error from very tall / wide images being resized to 0 pixels (Fidel Ramos) * Fix: Remove excess margin when editing snippets (Quadric) + * Fix: Added `scope` attribute to table headers in TableBlock output (Quadric) 2.8 (03.02.2020) diff --git a/docs/releases/2.9.rst b/docs/releases/2.9.rst index 05603f8eed..03072027e6 100644 --- a/docs/releases/2.9.rst +++ b/docs/releases/2.9.rst @@ -50,6 +50,7 @@ Bug fixes * Document tags no longer fail to update when replacing the document file at the same time (Matt Westcott) * Prevent error from very tall / wide images being resized to 0 pixels (Fidel Ramos) * Remove excess margin when editing snippets (Quadric) + * Added ``scope`` attribute to table headers in TableBlock output (Quadric) Upgrade considerations diff --git a/wagtail/contrib/table_block/templates/table_block/blocks/table.html b/wagtail/contrib/table_block/templates/table_block/blocks/table.html index 6ac4ec9cd1..116ede4271 100644 --- a/wagtail/contrib/table_block/templates/table_block/blocks/table.html +++ b/wagtail/contrib/table_block/templates/table_block/blocks/table.html @@ -9,7 +9,7 @@ {% for column in table_header %} {% with forloop.counter0 as col_index %} - + {% if column.strip %} {% if html_renderer %} {{ column.strip|safe|linebreaksbr }} @@ -30,7 +30,7 @@ {% for column in row %} {% with forloop.counter0 as col_index %} {% if first_col_is_header and forloop.first %} - + {% if column.strip %} {% if html_renderer %} {{ column.strip|safe|linebreaksbr }} diff --git a/wagtail/contrib/table_block/tests.py b/wagtail/contrib/table_block/tests.py index 9045778132..f340c58da1 100644 --- a/wagtail/contrib/table_block/tests.py +++ b/wagtail/contrib/table_block/tests.py @@ -63,7 +63,7 @@ class TestTableBlock(TestCase): expected = """ - + @@ -133,7 +133,7 @@ class TestTableBlock(TestCase): expected = """
Test 1Test 2Test 3
Test 1Test 2Test 3
- + @@ -155,9 +155,9 @@ class TestTableBlock(TestCase): expected = """
FooBarBaz
FooBarBaz
- - - + + +
FooBarBaz
onetwothree
fourfivesix
FooBarBaz
onetwothree
fourfivesix
""" @@ -175,11 +175,11 @@ class TestTableBlock(TestCase): expected = """ - + - - + +
FooBarBaz
FooBarBaz
onetwothree
fourfivesix
onetwothree
fourfivesix
"""