From a9b77fb9a7af6e37edcae88968de26aa16d7baee Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Wed, 5 Nov 2025 15:53:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(frontend)=20visual=20improvements?= =?UTF-8?q?=20around=20the=20Icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With time some visual inconsistencies have crept into the DropButton and Icon component. This commit aims to harmonize the appearance with the design system. --- CHANGELOG.md | 2 ++ .../__tests__/app-impress/doc-grid.spec.ts | 2 ++ .../impress/src/components/DropButton.tsx | 3 ++- .../apps/impress/src/components/Icon.tsx | 12 ++++++++---- .../src/cunningham/cunningham-style.css | 5 +++++ .../InterlinkingLinkInlineContent.tsx | 2 +- .../doc-header/components/BoutonShare.tsx | 2 +- .../doc-management/components/DocIcon.tsx | 10 ++++++---- .../doc-share/components/DocVisibility.tsx | 12 +++++++++++- .../doc-tree/components/DocSubPageItem.tsx | 19 ++++++++----------- .../apps/impress/src/i18n/translations.json | 8 ++++---- 11 files changed, 50 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efc2c732..0d931c0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ and this project adheres to - 🐛(backend) fix s3 version_id validation - 🐛(frontend) retry check media status after page reload #1555 - 🐛(frontend) fix Interlinking memory leak #1560 +- 🐛(frontend) button new doc UI fix #1557 +- 🐛(frontend) interlinking UI fix #1557 ## [3.8.2] - 2025-10-17 diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-grid.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-grid.spec.ts index 61535fff..2bdb9d8e 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-grid.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-grid.spec.ts @@ -134,6 +134,8 @@ test.describe('Document grid item options', () => { test('it deletes the document', async ({ page, browserName }) => { const [docTitle] = await createDoc(page, `delete doc`, browserName); + await verifyDocName(page, docTitle); + await page.goto('/'); await expect(page.getByText(docTitle)).toBeVisible(); diff --git a/src/frontend/apps/impress/src/components/DropButton.tsx b/src/frontend/apps/impress/src/components/DropButton.tsx index 30172b42..09772b4b 100644 --- a/src/frontend/apps/impress/src/components/DropButton.tsx +++ b/src/frontend/apps/impress/src/components/DropButton.tsx @@ -31,7 +31,7 @@ const StyledButton = styled(Button)` font-weight: 500; font-size: 0.938rem; padding: 0; - ${({ $css }) => $css}; + border-radius: 4px; &:hover { background-color: var( --c--components--button--primary-text--background--color-hover @@ -41,6 +41,7 @@ const StyledButton = styled(Button)` box-shadow: 0 0 0 2px var(--c--theme--colors--primary-400); border-radius: 4px; } + ${({ $css }) => $css}; `; export interface DropButtonProps { diff --git a/src/frontend/apps/impress/src/components/Icon.tsx b/src/frontend/apps/impress/src/components/Icon.tsx index fd1458a8..f5c0baa1 100644 --- a/src/frontend/apps/impress/src/components/Icon.tsx +++ b/src/frontend/apps/impress/src/components/Icon.tsx @@ -13,7 +13,7 @@ export const Icon = ({ iconName, disabled, variant = 'outlined', - $variation, + $variation = 'text', ...textProps }: IconProps) => { const hasLabel = 'aria-label' in textProps || 'aria-labelledby' in textProps; @@ -41,15 +41,19 @@ type IconOptionsProps = TextType & { isHorizontal?: boolean; }; -export const IconOptions = ({ isHorizontal, ...props }: IconOptionsProps) => { +export const IconOptions = ({ + isHorizontal, + $css, + ...props +}: IconOptionsProps) => { return ( ); }; diff --git a/src/frontend/apps/impress/src/cunningham/cunningham-style.css b/src/frontend/apps/impress/src/cunningham/cunningham-style.css index bc4e5e24..54d0c67d 100644 --- a/src/frontend/apps/impress/src/cunningham/cunningham-style.css +++ b/src/frontend/apps/impress/src/cunningham/cunningham-style.css @@ -44,6 +44,11 @@ contain: content; } +.c__button--medium { + min-height: var(--c--components--button--medium-height); + height: auto; +} + /** * Modal */ diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content/Interlinking/InterlinkingLinkInlineContent.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content/Interlinking/InterlinkingLinkInlineContent.tsx index 769d6c15..747e6e7c 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content/Interlinking/InterlinkingLinkInlineContent.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content/Interlinking/InterlinkingLinkInlineContent.tsx @@ -77,7 +77,7 @@ const LinkSelected = ({ url, title }: LinkSelectedProps) => { onClick={handleClick} draggable="false" $css={css` - display: inline; + display: contents; padding: 0.1rem 0.4rem; border-radius: 4px; & svg { diff --git a/src/frontend/apps/impress/src/features/docs/doc-header/components/BoutonShare.tsx b/src/frontend/apps/impress/src/features/docs/doc-header/components/BoutonShare.tsx index c0e31db5..c821e5ac 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-header/components/BoutonShare.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-header/components/BoutonShare.tsx @@ -76,7 +76,7 @@ export const BoutonShare = ({ return (