diff --git a/src/backend/core/tests/test_api_utils_ai_document_rate_throttles.py b/src/backend/core/tests/test_api_utils_ai_document_rate_throttles.py index 79301443..dbb15467 100644 --- a/src/backend/core/tests/test_api_utils_ai_document_rate_throttles.py +++ b/src/backend/core/tests/test_api_utils_ai_document_rate_throttles.py @@ -55,7 +55,7 @@ def test_api_utils_ai_document_rate_throttle_minute_limit(mock_time): # After the 60s backoff wait time has passed, we can make a request again mock_time.return_value += 1 - request = api_rf.get("//1/") + request = api_rf.get("/documents/1/") response = DocumentAPIView.as_view()(request, pk=1) assert response.status_code == 200 diff --git a/src/frontend/apps/impress/src/components/DropButton.tsx b/src/frontend/apps/impress/src/components/DropButton.tsx index e6f53460..dc1188d5 100644 --- a/src/frontend/apps/impress/src/components/DropButton.tsx +++ b/src/frontend/apps/impress/src/components/DropButton.tsx @@ -12,9 +12,7 @@ const StyledPopover = styled(Popover)` background-color: white; border-radius: 4px; box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1); - border: 1px solid #dddddd; - transition: opacity 0.2s ease-in-out; `; @@ -45,7 +43,6 @@ export const DropButton = ({ children, }: PropsWithChildren) => { const [isLocalOpen, setIsLocalOpen] = useState(isOpen); - const triggerRef = useRef(null); useEffect(() => { @@ -59,17 +56,22 @@ export const DropButton = ({ return ( <> - onOpenChangeHandler(true)}> + {/* Bouton activant le menu avec les propriétés ARIA */} + onOpenChangeHandler(true)} + > - - {children} - + {/* Menu accessible */} + {isLocalOpen && ( + + {children} + + )} ); }; diff --git a/src/frontend/apps/impress/src/components/DropdownMenu.tsx b/src/frontend/apps/impress/src/components/DropdownMenu.tsx index 815e0e1f..2dd39b2f 100644 --- a/src/frontend/apps/impress/src/components/DropdownMenu.tsx +++ b/src/frontend/apps/impress/src/components/DropdownMenu.tsx @@ -1,4 +1,3 @@ -//import { t } from 'i18next'; import { PropsWithChildren, useState } from 'react'; import { css } from 'styled-components'; @@ -56,16 +55,19 @@ export const DropdownMenu = ({ showArrow ? (
{children}
- +
) : ( children @@ -134,12 +136,14 @@ export const DropdownMenu = ({ > {option.icon && ( - + )} {option.label} diff --git a/src/frontend/apps/impress/src/components/Icon.tsx b/src/frontend/apps/impress/src/components/Icon.tsx index 224f87b6..e877a6cb 100644 --- a/src/frontend/apps/impress/src/components/Icon.tsx +++ b/src/frontend/apps/impress/src/components/Icon.tsx @@ -8,8 +8,27 @@ type IconProps = TextType & { }; export const Icon = ({ iconName, ...textProps }: IconProps) => { return ( - - {iconName} + ); }; @@ -24,6 +43,7 @@ export const IconBG = ({ iconName, ...textProps }: IconBGProps) => { return (