mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-09 19:57:49 +02:00
Accessibility improvements in page structure (#1014)
* Change app link to not use heading * Use main and h1 for main content * Update settings page structure * Fix responsive styles * Update bookmark form page structure * Update auth page structure * Add some basic page titles * Expose side panel section * Add page title for bookmark details * Expose more sections * Improve region names
This commit is contained in:
@@ -24,6 +24,13 @@ class LayoutTestCase(TestCase, BookmarkFactoryMixin, HtmlTestMixin):
|
||||
html,
|
||||
count=0,
|
||||
)
|
||||
self.assertInHTML(
|
||||
f"""
|
||||
<a href="{reverse('linkding:bookmarks.shared')}" class="menu-link">Shared bookmarks</a>
|
||||
""",
|
||||
html,
|
||||
count=0,
|
||||
)
|
||||
|
||||
self.user.profile.enable_sharing = True
|
||||
self.user.profile.save()
|
||||
@@ -35,7 +42,14 @@ class LayoutTestCase(TestCase, BookmarkFactoryMixin, HtmlTestMixin):
|
||||
<a href="{reverse('linkding:bookmarks.shared')}" class="menu-link">Shared</a>
|
||||
""",
|
||||
html,
|
||||
count=2,
|
||||
count=1,
|
||||
)
|
||||
self.assertInHTML(
|
||||
f"""
|
||||
<a href="{reverse('linkding:bookmarks.shared')}" class="menu-link">Shared bookmarks</a>
|
||||
""",
|
||||
html,
|
||||
count=1,
|
||||
)
|
||||
|
||||
def test_metadata_should_respect_prefetch_links_setting(self):
|
||||
|
Reference in New Issue
Block a user