From 660fea176910b5f5bd4b767a1caf86f509bb3317 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 12 Mar 2025 14:22:38 +0100 Subject: [PATCH] Use our own implementation of the Separator component The one in compound-web is weirdly implemented and doesn't use the right semantic tokens --- .../OAuth2ClientDetail.test.tsx.snap | 11 ++-- .../components/Separator/Separator.module.css | 13 ++++ .../src/components/Separator/Separator.tsx | 32 +++++++++ frontend/src/components/Separator/index.tsx | 6 ++ .../components/SessionDetail/SessionInfo.tsx | 12 ++-- .../CompatSessionDetail.test.tsx.snap | 66 +++++++++---------- .../OAuth2SessionDetail.test.tsx.snap | 44 ++++++------- frontend/src/routes/_account.index.lazy.tsx | 5 +- .../routes/_account.sessions.index.lazy.tsx | 5 +- .../src/routes/password.change.index.lazy.tsx | 3 +- .../account/__snapshots__/index.test.tsx.snap | 17 ++--- 11 files changed, 128 insertions(+), 86 deletions(-) create mode 100644 frontend/src/components/Separator/Separator.module.css create mode 100644 frontend/src/components/Separator/Separator.tsx create mode 100644 frontend/src/components/Separator/index.tsx diff --git a/frontend/src/components/Client/__snapshots__/OAuth2ClientDetail.test.tsx.snap b/frontend/src/components/Client/__snapshots__/OAuth2ClientDetail.test.tsx.snap index 1acf56602..2558267f6 100644 --- a/frontend/src/components/Client/__snapshots__/OAuth2ClientDetail.test.tsx.snap +++ b/frontend/src/components/Client/__snapshots__/OAuth2ClientDetail.test.tsx.snap @@ -21,13 +21,12 @@ exports[` > renders client details 1`] = ` class="_typography_6v6n8_153 _font-heading-sm-semibold_6v6n8_93" > Client info -