Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Replace Sass variables with custom properties - mx_Indicator #10808

Merged
merged 3 commits into from
May 16, 2023
Merged

Replace Sass variables with custom properties - mx_Indicator #10808

merged 3 commits into from
May 16, 2023

Conversation

luixxiul
Copy link
Contributor

@luixxiul luixxiul commented May 5, 2023

Cherry-picked from #10495
For element-hq/element-web#21656

This PR intends to replace Sass variables of mx_Indicator with custom properties.

mx_Indicator on _RoomView.pcss belongs to RoomHeaderButtons.tsx, and the class name should be fixed to make it follow the naming policy, but fixing it is out of scope of this PR. It will be addressed with another PR.

type: task

Signed-off-by: Suguru Hirahara [email protected]

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This change is marked as an internal change (Task), so will not be included in the changelog.

@github-actions github-actions bot added Z-Community-PR Issue is solved by a community member's PR T-Task Refactoring, enabling or disabling functionality, other engineering tasks labels May 5, 2023
@luixxiul luixxiul marked this pull request as ready for review May 5, 2023 19:10
@luixxiul luixxiul requested a review from a team as a code owner May 5, 2023 19:10
@luixxiul luixxiul requested review from andybalaam and t3chguy May 5, 2023 19:10
Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@andybalaam andybalaam added the X-Needs-Percy Whether to run Percy screenshot tests in Merge Queue label May 9, 2023
@andybalaam andybalaam enabled auto-merge May 9, 2023 12:50
@andybalaam andybalaam added this pull request to the merge queue May 9, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 9, 2023
@andybalaam andybalaam added this pull request to the merge queue May 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 10, 2023
--RoomHeader-indicator-dot-size: 8px;
--RoomHeader-indicator-dot-offset: -3px;
--RoomHeader-indicator-pulseColor: $alert;
}
Copy link
Contributor Author

@luixxiul luixxiul May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not really satisfied with this type of "solution". Instead there should be one common Indicator component, which could be customized with custom properties for each case. I guess it should be a better way of using the custom properties, so that cascading works effectively, keeping the number of properties as low as possible.

@luixxiul
Copy link
Contributor Author

@andybalaam would you kindly add the PR to the queue again?

@andybalaam
Copy link
Member

Hmm. Looks like Sliding sync: should send unsubscribe_rooms for every room switch could be flaky. If it happens again let's log a bug for it.

@andybalaam andybalaam added this pull request to the merge queue May 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 11, 2023
@luixxiul luixxiul requested a review from andybalaam May 11, 2023 20:28
@andybalaam
Copy link
Member

Percy changes approved, and the SonarCloud failure was "no artifacts found" which should be fixed now by #10863 so re-running merge.

@andybalaam andybalaam added this pull request to the merge queue May 12, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 12, 2023
@andybalaam andybalaam added this pull request to the merge queue May 12, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 12, 2023
@andybalaam
Copy link
Member

I approved the percy changes, so am hoping this will merge.

@andybalaam andybalaam added this pull request to the merge queue May 12, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 12, 2023
@andybalaam
Copy link
Member

One more try. If not, we will need to figure out why this won't pass Percy.

@andybalaam andybalaam added this pull request to the merge queue May 12, 2023
@luixxiul
Copy link
Contributor Author

@andybalaam thank you for having kept an eye on this issue all day long…

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 12, 2023
@andybalaam
Copy link
Member

I don't know why this keeps failing Percy. Asking in the development room.

@luixxiul
Copy link
Contributor Author

Thank you for taking care of this :-)

@andybalaam
Copy link
Member

I can't figure out why this change (and not others) is failing to merge, so I'm forcing it.

@andybalaam andybalaam merged commit ae692f7 into matrix-org:develop May 16, 2023
@luixxiul luixxiul deleted the RoomHeader-indicator branch May 16, 2023 10:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks X-Needs-Percy Whether to run Percy screenshot tests in Merge Queue Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants