-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MM-16541] Remove perfect-scrollbar package #4382
[MM-16541] Remove perfect-scrollbar package #4382
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks @fm2munsh! 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. We just can't style the default scrollbar is specific browsers like IE, but I think it's fine.
@asaadmahmood IE isn't a problem any more since we don't have to support it any more 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Many of us have been frustrated with perfect-scrollbar for a long time, so it's awesome to have it finally removed
@hmhealey Yup, and we can also just use the react native scrollbars if we want a replacement. |
…ils.jsx (#6697) * [MM-29389] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 510 (#15828) This line was unconditionally replaced by line 824 using --link-color so I directly used --link-color in CSS Fixes mattermost/mattermost#15828 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29389 * [MM-29390] Remove references to removed perfect-scrollbar component (#15829) While analyzing mattermost/mattermost#15829 I couldn't found where ps-container class was used It turns out it was an old dependency removed by PR #4382 This commit removes remaining references Fixes mattermost/mattermost#15829 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29390
* Remove an unused changeCSS() style (#6680) Fixes mattermost/mattermost#15837 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29399 * [MM-29392] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 516 (#15831) (#6695) Fixes mattermost/mattermost#15831 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29392 * [MM-29397] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln 525 (#15836) (#6686) Remove the line as style is already applied unconditionally and more broadly by changeCss() call at line 515 Fixes mattermost/mattermost#15836 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29397 * [MM-29396] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 523 (#15835) (#6692) Remove the line as it isn't possible that .sidebar__switcher button contains a svg Fixes mattermost/mattermost#15835 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29396 * [MM-29391] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 513 (#15830) (#6696) Fixes mattermost/mattermost#15830 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29391 * [MM-29393] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 519 (#15832) (#6694) Fixes mattermost/mattermost#15832 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29393 * [MM-29394] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 520 (#15833) (#6693) Fixes mattermost/mattermost#15833 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29394 Co-authored-by: Dean Whillier <[email protected]> * Migrate changeCSS(sideText) to CSS variable --sidebartext in utils/utils.jsx (#6697) * [MM-29389] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 510 (#15828) This line was unconditionally replaced by line 824 using --link-color so I directly used --link-color in CSS Fixes mattermost/mattermost#15828 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29389 * [MM-29390] Remove references to removed perfect-scrollbar component (#15829) While analyzing mattermost/mattermost#15829 I couldn't found where ps-container class was used It turns out it was an old dependency removed by PR #4382 This commit removes remaining references Fixes mattermost/mattermost#15829 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29390 Co-authored-by: Nicolas Le Cam <[email protected]> Co-authored-by: Mattermod <[email protected]>
* Remove an unused changeCSS() style (#6680) Fixes mattermost/mattermost#15837 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29399 * [MM-29392] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 516 (#15831) (#6695) Fixes mattermost/mattermost#15831 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29392 * [MM-29397] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln 525 (#15836) (#6686) Remove the line as style is already applied unconditionally and more broadly by changeCss() call at line 515 Fixes mattermost/mattermost#15836 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29397 * [MM-29396] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 523 (#15835) (#6692) Remove the line as it isn't possible that .sidebar__switcher button contains a svg Fixes mattermost/mattermost#15835 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29396 * [MM-29391] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 513 (#15830) (#6696) Fixes mattermost/mattermost#15830 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29391 * [MM-29393] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 519 (#15832) (#6694) Fixes mattermost/mattermost#15832 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29393 * [MM-29394] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 520 (#15833) (#6693) Fixes mattermost/mattermost#15833 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29394 Co-authored-by: Dean Whillier <[email protected]> * Migrate changeCSS(sideText) to CSS variable --sidebartext in utils/utils.jsx (#6697) * [MM-29389] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 510 (#15828) This line was unconditionally replaced by line 824 using --link-color so I directly used --link-color in CSS Fixes mattermost/mattermost#15828 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29389 * [MM-29390] Remove references to removed perfect-scrollbar component (#15829) While analyzing mattermost/mattermost#15829 I couldn't found where ps-container class was used It turns out it was an old dependency removed by PR #4382 This commit removes remaining references Fixes mattermost/mattermost#15829 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29390 Co-authored-by: Nicolas Le Cam <[email protected]> Co-authored-by: Mattermod <[email protected]>
* Remove an unused changeCSS() style (#6680) Fixes mattermost/mattermost#15837 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29399 * [MM-29392] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 516 (#15831) (#6695) Fixes mattermost/mattermost#15831 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29392 * [MM-29397] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln 525 (#15836) (#6686) Remove the line as style is already applied unconditionally and more broadly by changeCss() call at line 515 Fixes mattermost/mattermost#15836 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29397 * [MM-29396] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 523 (#15835) (#6692) Remove the line as it isn't possible that .sidebar__switcher button contains a svg Fixes mattermost/mattermost#15835 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29396 * [MM-29391] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 513 (#15830) (#6696) Fixes mattermost/mattermost#15830 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29391 * [MM-29393] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 519 (#15832) (#6694) Fixes mattermost/mattermost#15832 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29393 * [MM-29394] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 520 (#15833) (#6693) Fixes mattermost/mattermost#15833 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29394 Co-authored-by: Dean Whillier <[email protected]> * Migrate changeCSS(sideText) to CSS variable --sidebartext in utils/utils.jsx (#6697) * [MM-29389] Migrate changeCSS() to CSS variable in utils/utils.jsx, ln. 510 (#15828) This line was unconditionally replaced by line 824 using --link-color so I directly used --link-color in CSS Fixes mattermost/mattermost#15828 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29389 * [MM-29390] Remove references to removed perfect-scrollbar component (#15829) While analyzing mattermost/mattermost#15829 I couldn't found where ps-container class was used It turns out it was an old dependency removed by PR #4382 This commit removes remaining references Fixes mattermost/mattermost#15829 JIRA ticket: https://mattermost.atlassian.net/browse/MM-29390 Co-authored-by: Nicolas Le Cam <[email protected]> Co-authored-by: Mattermod <[email protected]>
Summary
The places that should be tested to ensure that the experience is still good enough are:
Ticket Link
Fixes: mattermost/mattermost#11422
JIRA: https://mattermost.atlassian.net/browse/MM-16541
Screenshots
I have recorded two gifs: