diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-01 23:26:27 +0100 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-01 23:36:29 +0100 | 
| commit | 66822d929b48c93e44acb2c73a542417549335ac (patch) | |
| tree | dd263778f666c9e83bab9cb85a072081a1134c39 /src/components/PaginationCursor/PaginationCursor.tsx | |
| parent | eeb9ea8d489c890a80c88658cb860577075ac660 (diff) | |
chore: move pagination cursor title in a separate div
The progress bar will be clearer for everyone if the information about
the number of loaded articles is printed without hovering the progress
bar.
Diffstat (limited to 'src/components/PaginationCursor/PaginationCursor.tsx')
| -rw-r--r-- | src/components/PaginationCursor/PaginationCursor.tsx | 18 | 
1 files changed, 10 insertions, 8 deletions
| diff --git a/src/components/PaginationCursor/PaginationCursor.tsx b/src/components/PaginationCursor/PaginationCursor.tsx index a8c6265..3b0c15f 100644 --- a/src/components/PaginationCursor/PaginationCursor.tsx +++ b/src/components/PaginationCursor/PaginationCursor.tsx @@ -12,6 +12,16 @@ const PaginationCursor = ({    return (      <div className={styles.wrapper}> +      <div className={styles.info}> +        {intl.formatMessage( +          { +            defaultMessage: +              '{articlesCount, plural, =0 {# loaded articles} one {# loaded article} other {# loaded articles}} out of a total of {total}', +            description: 'PaginationCursor: loaded articles count message', +          }, +          { articlesCount: current, total } +        )} +      </div>        <progress          className={styles.bar}          max={total} @@ -23,14 +33,6 @@ const PaginationCursor = ({              'Number of articles loaded out of the total available.',            description: 'PaginationCursor: loaded articles count aria-label',          })} -        title={intl.formatMessage( -          { -            defaultMessage: -              '{articlesCount, plural, =0 {# articles} one {# article} other {# articles}} out of a total of {total}', -            description: 'PaginationCursor: loaded articles count message', -          }, -          { articlesCount: current, total } -        )}        ></progress>      </div>    ); | 
