Skip to content

Commit 8b80477

Browse files
authored
Merge pull request #12947 from github/repo-sync
repo sync
2 parents 613de1c + 1c0881a commit 8b80477

3 files changed

Lines changed: 9 additions & 94 deletions

File tree

.github/allowed-actions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export default [
1313
'actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074', // v2.2.4
1414
'alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488', // v0.8.1
1515
'andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90', // v1.0.4
16-
'crowdin/github-action@d0622816ed4f4744db27d04374b2cef6867f7bed', // v1.4.1
1716
'cschleiden/actions-linter@caffd707beda4fc6083926a3dff48444bc7c24aa', // uses github-actions-parser v0.23.0
1817
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911', // v3.0.2
1918
'dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126', // v2.15.0

.github/workflows/crowdin.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

components/ui/ScrollButton/ScrollButton.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState, useEffect } from 'react'
22
import cx from 'classnames'
33
import { ChevronUpIcon } from '@primer/octicons-react'
4+
import { useTranslation } from '../../hooks/useTranslation'
45

56
export type ScrollButtonPropsT = {
67
className?: string
@@ -9,6 +10,7 @@ export type ScrollButtonPropsT = {
910

1011
export const ScrollButton = ({ className, ariaLabel }: ScrollButtonPropsT) => {
1112
const [show, setShow] = useState(false)
13+
const { t } = useTranslation(['scroll_button'])
1214

1315
useEffect(() => {
1416
// show scroll button only when view is scrolled down
@@ -35,9 +37,13 @@ export const ScrollButton = ({ className, ariaLabel }: ScrollButtonPropsT) => {
3537
<div className={cx(className, 'transition-200', show ? 'opacity-100' : 'opacity-0')}>
3638
<button
3739
onClick={onClick}
38-
className={cx(
39-
'tooltipped tooltipped-n tooltipped-no-delay color-bg-accent-emphasis color-fg-on-emphasis circle border-0'
40-
)}
40+
className="color-bg-default color-fg-on-emphasis border-0 d-inline-block mr-2 f6"
41+
>
42+
{t('scroll_to_top')}
43+
</button>
44+
<button
45+
onClick={onClick}
46+
className={cx('color-bg-accent-emphasis color-fg-on-emphasis circle border-0')}
4147
style={{ width: 40, height: 40 }}
4248
aria-label={ariaLabel}
4349
>

0 commit comments

Comments
 (0)