add aria-current to link (#2540)

This commit is contained in:
Maja Piechotka authored and GitHub committed 2024-06-19 17:11:28 -05:00
1 parent c094bf3ec3
commit f7820d8d94
2 files changed
+6 -2

No files matched your search

+2 -1
View File
@@ -173,10 +173,11 @@ fn with_active_class_active() {
}
let expected = format!(
"<h1>App</h1><a {href} {default} {class}>Link</a>",
"<h1>App</h1><a {href} {default} {class} {aria}>Link</a>",
href = r#"href="/""#,
default = r#"dioxus-prevent-default="onclick""#,
class = r#"class="test_class active_class""#,
aria = r#"aria-current="page""#,
);
assert_eq!(prepare::<Route>(), expected);