kopia lustrzana https://github.com/wagtail/wagtail
Revert "Add role="table" to TableBlock output" (#5977)
rodzic
165c5c0ce5
commit
2af880025a
|
@ -13,6 +13,7 @@ Changelog
|
||||||
* `AbstractEmailForm` now has a separate method (`render_email`) to build up email content on submission emails (Haydn Greatnews)
|
* `AbstractEmailForm` now has a separate method (`render_email`) to build up email content on submission emails (Haydn Greatnews)
|
||||||
* Fix: Ensure link to add a new user works when no users are visible in the users list (LB (Ben Johnston))
|
* Fix: Ensure link to add a new user works when no users are visible in the users list (LB (Ben Johnston))
|
||||||
* Fix: `AbstractEmailForm` saved submission fields are now aligned with the email content fields, `form.cleaned_data` will be used instead of `form.fields` (Haydn Greatnews)
|
* Fix: `AbstractEmailForm` saved submission fields are now aligned with the email content fields, `form.cleaned_data` will be used instead of `form.fields` (Haydn Greatnews)
|
||||||
|
* Fix: Removed ARIA `role="table"` from TableBlock output (Thibaud Colas)
|
||||||
|
|
||||||
|
|
||||||
2.9 (xx.xx.xxxx) - IN DEVELOPMENT
|
2.9 (xx.xx.xxxx) - IN DEVELOPMENT
|
||||||
|
|
|
@ -27,6 +27,7 @@ Bug fixes
|
||||||
|
|
||||||
* Ensure link to add a new user works when no users are visible in the users list (LB (Ben Johnston))
|
* Ensure link to add a new user works when no users are visible in the users list (LB (Ben Johnston))
|
||||||
* ``AbstractEmailForm`` saved submission fields are now aligned with the email content fields, ``form.cleaned_data`` will be used instead of ``form.fields`` (Haydn Greatnews)
|
* ``AbstractEmailForm`` saved submission fields are now aligned with the email content fields, ``form.cleaned_data`` will be used instead of ``form.fields`` (Haydn Greatnews)
|
||||||
|
* Removed ARIA `role="table"` from TableBlock output (Thibaud Colas)
|
||||||
|
|
||||||
|
|
||||||
Upgrade considerations
|
Upgrade considerations
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% load table_block_tags %}
|
{% load table_block_tags %}
|
||||||
|
|
||||||
<table role="table">
|
<table>
|
||||||
{% if table_caption %}
|
{% if table_caption %}
|
||||||
<caption>{{ table_caption }}</caption>
|
<caption>{{ table_caption }}</caption>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class TestTableBlock(TestCase):
|
||||||
block = TableBlock()
|
block = TableBlock()
|
||||||
result = block.render(value)
|
result = block.render(value)
|
||||||
expected = """
|
expected = """
|
||||||
<table role="table">
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td>Test 1</td><td>Test 2</td><td>Test 3</td></tr>
|
<tr><td>Test 1</td><td>Test 2</td><td>Test 3</td></tr>
|
||||||
<tr><td></td><td></td><td></td></tr>
|
<tr><td></td><td></td><td></td></tr>
|
||||||
|
@ -61,7 +61,7 @@ class TestTableBlock(TestCase):
|
||||||
block = TableBlock()
|
block = TableBlock()
|
||||||
result = block.render(value)
|
result = block.render(value)
|
||||||
expected = """
|
expected = """
|
||||||
<table role="table">
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th scope="col">Test 1</th><th scope="col" class="htLeft">Test 2</th><th scope="col">Test 3</th></tr>
|
<tr><th scope="col">Test 1</th><th scope="col" class="htLeft">Test 2</th><th scope="col">Test 3</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -90,7 +90,7 @@ class TestTableBlock(TestCase):
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
expected = """
|
expected = """
|
||||||
<table role="table">
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td></td><td></td><td></td></tr>
|
<tr><td></td><td></td><td></td></tr>
|
||||||
<tr><td></td><td></td><td></td></tr>
|
<tr><td></td><td></td><td></td></tr>
|
||||||
|
@ -110,7 +110,7 @@ class TestTableBlock(TestCase):
|
||||||
[None, None, None]]}
|
[None, None, None]]}
|
||||||
|
|
||||||
expected = """
|
expected = """
|
||||||
<table role="table">
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><p><strong>Test</strong></p></td><td></td><td></td></tr>
|
<tr><td><p><strong>Test</strong></p></td><td></td><td></td></tr>
|
||||||
<tr><td></td><td></td><td></td></tr>
|
<tr><td></td><td></td><td></td></tr>
|
||||||
|
@ -131,7 +131,7 @@ class TestTableBlock(TestCase):
|
||||||
'data': [['Foo', 'Bar', 'Baz'], [None, None, None], [None, None, None]]}
|
'data': [['Foo', 'Bar', 'Baz'], [None, None, None], [None, None, None]]}
|
||||||
|
|
||||||
expected = """
|
expected = """
|
||||||
<table role="table">
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th scope="col">Foo</th><th scope="col">Bar</th><th scope="col">Baz</th></tr>
|
<tr><th scope="col">Foo</th><th scope="col">Bar</th><th scope="col">Baz</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -153,7 +153,7 @@ class TestTableBlock(TestCase):
|
||||||
'data': [['Foo', 'Bar', 'Baz'], ['one', 'two', 'three'], ['four', 'five', 'six']]}
|
'data': [['Foo', 'Bar', 'Baz'], ['one', 'two', 'three'], ['four', 'five', 'six']]}
|
||||||
|
|
||||||
expected = """
|
expected = """
|
||||||
<table role="table">
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><th scope="row">Foo</th><td>Bar</td><td>Baz</td></tr>
|
<tr><th scope="row">Foo</th><td>Bar</td><td>Baz</td></tr>
|
||||||
<tr><th scope="row">one</th><td>two</td><td>three</td></tr>
|
<tr><th scope="row">one</th><td>two</td><td>three</td></tr>
|
||||||
|
@ -173,7 +173,7 @@ class TestTableBlock(TestCase):
|
||||||
'data': [['Foo', 'Bar', 'Baz'], ['one', 'two', 'three'], ['four', 'five', 'six']]}
|
'data': [['Foo', 'Bar', 'Baz'], ['one', 'two', 'three'], ['four', 'five', 'six']]}
|
||||||
|
|
||||||
expected = """
|
expected = """
|
||||||
<table role="table">
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th scope="col">Foo</th><th scope="col">Bar</th><th scope="col">Baz</th></tr>
|
<tr><th scope="col">Foo</th><th scope="col">Bar</th><th scope="col">Baz</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -258,7 +258,7 @@ class TestTableBlock(TestCase):
|
||||||
block = TableBlock()
|
block = TableBlock()
|
||||||
result = block.render(value)
|
result = block.render(value)
|
||||||
expected = """
|
expected = """
|
||||||
<table role="table">
|
<table>
|
||||||
<caption>caption</caption>
|
<caption>caption</caption>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td>Test 1</td><td>Test 2</td><td>Test 3</td></tr>
|
<tr><td>Test 1</td><td>Test 2</td><td>Test 3</td></tr>
|
||||||
|
|
Ładowanie…
Reference in New Issue