Skip to content

"Show All" link button on ReactionsRow should be styled properly #22300

Closed
matrix-org/matrix-react-sdk
#8658

Description

@luixxiul

Steps to reproduce

  1. Send a message
  2. Add reactions to display Show All link button

Outcome

What did you expect?

The link button should be styled as implemented on matrix-org/matrix-react-sdk#6027

What happened instead?

The default link declarations are applied to the link button.

before

Operating system

Debian

Browser information

Firefox ESR 99

URL for webapp

localhost

Application version

develop branch

Homeserver

No response

Will you send logs?

No

Activity

  1. changed the title [-]"Show All" link button should be styled properly[/-] [+]"Show All" link button on ReactionsRow should be styled properly[/+] on May 20, 2022
  2. SimonBrandner commented on May 20, 2022

    @SimonBrandner
    Contributor

    I think I actually prefer the green one, @vector-im/design, what do you think off this?

  3. added
    S-MinorImpairs non-critical functionality or suitable workarounds exist
    O-FrequentAffects or can be seen by most users regularly or impacts most users' first experience
    on May 20, 2022
  4. luixxiul commented on May 20, 2022

    @luixxiul
    Author

    It could be easily realized by removing this line: https://github.com/matrix-org/matrix-react-sdk/pull/8658/files#diff-9b841ae6013a222403aff59b3ae7d1c76c11a381b24a749607bfeff22dc07c8dR65.

    The main issue here is that current implementation does not respect declarations of .mx_ReactionsRow_showAll block and all of them except the margin declaration are not effective.

  5. SimonBrandner commented on May 20, 2022

    @SimonBrandner
    Contributor

    It could be easily realized by removing this line: matrix-org/matrix-react-sdk#8658 (files).

    The main issue here is that current implementation does not respect declarations of .mx_ReactionsRow_showAll block and all of them except the margin declaration are not effective.

    Could we split this into two things - the color and the rest?

  6. luixxiul commented on May 20, 2022

    @luixxiul
    Author

    Since #8658 does not change the current color value, it is possible to do so by moving the color declaration for link color directly under mx_ReactionsRow_showAll, though I am sure it is not a great way as it has the color property overridden on purpose 😅

    As below:

    .mx_ReactionsRow_showAll {
        color: $tertiary-content;
    
        &.mx_AccessibleButton_kind_link_inline {
            font-size: $font-12px;
            line-height: $font-20px;
            margin-inline-start: $spacing-4;
            vertical-align: middle;
    
            &:hover {
                color: $primary-content;
            }
        }
    }
    

    Otherwise the color declaration can be commented out, which might be more proper.

  7. added 3 commits that reference this issue on Jun 7, 2022
    bb2a41e
    4b5042b
    56703ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ReactionsO-FrequentAffects or can be seen by most users regularly or impacts most users' first experienceS-MinorImpairs non-critical functionality or suitable workarounds existT-DefectX-Needs-Design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions