Skip to content

Commit

Permalink
fix: remove default a11y text (#7821)
Browse files Browse the repository at this point in the history
h2. Описание

Убираем текст по умолчанию, как договорились в [обсуждении](#7505 (comment))

h2. Release notes

h2. BREAKING CHANGE
- ScreenSpinner: удалён `a11y`-текст по умолчанию, передавайте нужный текст в `children` или `label` свойства.
  • Loading branch information
BlackySoul authored Oct 24, 2024
1 parent 80cae47 commit 6760ba7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export const ScreenSpinnerLoader: React.FC<Omit<SpinnerProps, 'size'>> = ({
...restProps
}) => {
const { label } = React.useContext(ScreenSpinnerContext);
// TODO [>=7]: см. https://github.com/VKCOM/VKUI/pull/7505#discussion_r1754153438
const a11yText = children ? children : label ?? 'Пожалуйста, подождите...';
const a11yText = children ?? label;
return (
<Spinner
className={classNames(styles.spinner, !label && styles.spinnerTransition)}
Expand Down

0 comments on commit 6760ba7

Please sign in to comment.