diff --git a/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-push-policy-for-your-repository.md b/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-push-policy-for-your-repository.md index cf51b930fba3..0f8405782d30 100644 --- a/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-push-policy-for-your-repository.md +++ b/content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-push-policy-for-your-repository.md @@ -26,7 +26,7 @@ The push policy also blocks the Git command: `git push --mirror`. This is a pote {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} -1. Under "Pushes", select **Limit how many branches and tags can be updated in a single push**. -1. After "Up to", type the number of branches and tags you want to limit in a single push. Lower numbers are more restrictive of which pushes are allowed, and higher numbers are less restrictive but have more potential for being destructive. +1. In the **General** settings, which is the default tab, find **Pushes**, then select **Limit how many branches and tags can be updated in a single push**. +1. After **Up to**, type the number of branches and tags you want to limit in a single push. Lower numbers are more restrictive of which pushes are allowed, and higher numbers are less restrictive but have more potential for being destructive. We recommend the default maximum of `5` branch or tag updates allowed in one push. The minimum value is `2`, because Git requires two branch updates to rename a branch in a single push: _delete branch_ and _create branch_. diff --git a/src/frame/components/ui/ScrollButton/ScrollButton.module.scss b/src/frame/components/ui/ScrollButton/ScrollButton.module.scss index ca0df1e259c4..6c1b83ad9be1 100644 --- a/src/frame/components/ui/ScrollButton/ScrollButton.module.scss +++ b/src/frame/components/ui/ScrollButton/ScrollButton.module.scss @@ -4,10 +4,12 @@ .opacity0 { opacity: 0; + pointer-events: none; } .opacity100 { opacity: 1; + pointer-events: auto; } .customFocus:focus:not(:focus-visible), // override primer css specificity @@ -21,3 +23,10 @@ width: 2.5rem; height: 2.5rem; } + +// When the viewport is too short to show the button permanently, +// reveal it on keyboard focus so it remains accessible (a11y #16466). +.scrollWrapper:has(.scrollButton:focus-visible) { + opacity: 1; + pointer-events: auto; +} diff --git a/src/frame/components/ui/ScrollButton/ScrollButton.tsx b/src/frame/components/ui/ScrollButton/ScrollButton.tsx index b022583f798b..0e190ea7383d 100644 --- a/src/frame/components/ui/ScrollButton/ScrollButton.tsx +++ b/src/frame/components/ui/ScrollButton/ScrollButton.tsx @@ -64,12 +64,17 @@ export const ScrollButton = ({ className, ariaLabel }: ScrollButtonPropsT) => { return (