feat(frontend): simplify the candidate cabinet header
This commit is contained in:
1 parent
90ff71735a
commit
89932b8714
28 files changed
+1154
-179
No files matched your search
@@ -197,8 +197,16 @@ describe("route groups", () => {
|
||||
|
||||
it("marks the active cabinet section with aria-current", async () => {
|
||||
expect(currentLinkText(await renderHtml("/candidate"))).toEqual(["Главная"]);
|
||||
expect(currentLinkText(await renderHtml("/candidate/results"))).toEqual(["Результаты"]);
|
||||
expect(currentLinkText(await renderHtml("/candidate/privacy"))).toEqual(["Приватность"]);
|
||||
// The results are a sub-section of the test: the switch segment is the
|
||||
// page, and the primary "Тест" item is current as the section (true).
|
||||
const results = await renderHtml("/candidate/results");
|
||||
expect(currentLinkText(results)).toEqual(["Результаты"]);
|
||||
expect(results).toMatch(/<a[^>]*aria-current="true"[^>]*>Тест<\/a>/);
|
||||
// The account menu is rendered for the header and for the phone tab bar.
|
||||
expect(currentLinkText(await renderHtml("/candidate/privacy"))).toEqual([
|
||||
"Приватность",
|
||||
"Приватность",
|
||||
]);
|
||||
expect(currentLinkText(await renderHtml("/employer/invitations"))).toEqual(["Приглашения"]);
|
||||
});
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ html {
|
||||
var(--space-4);
|
||||
}
|
||||
|
||||
/* The candidate cabinet has a bottom tab bar on phones. */
|
||||
@media (width < 43.75rem) {
|
||||
/* The candidate cabinet has a bottom tab bar below 1024px. */
|
||||
@media (width < 64rem) {
|
||||
html {
|
||||
scroll-padding-bottom: 5rem;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user