Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tabs): take out fade from scroll button #16522

Merged

Conversation

divya-281
Copy link
Contributor

Closes #

It fixes these two issues from the issue #15961

Screenshot 2024-05-20 at 7 04 19 PM Screenshot 2024-05-20 at 7 04 44 PM

Changelog

Changed
Left scroll button:
Screenshot 2024-05-20 at 7 05 26 PM

Right scroll button:
Screenshot 2024-05-20 at 7 05 09 PM

The disabled token is already apprearing here:
Screenshot 2024-05-20 at 6 18 23 PM

Testing / Reviewing

Start story book with yarn storybook
Narrow your screen so that the scrollable button is visible

Copy link
Contributor

github-actions bot commented May 21, 2024

All contributors have signed the DCO.
Posted by the DCO Assistant Lite bot.

@divya-281 divya-281 marked this pull request as ready for review May 21, 2024 12:59
@divya-281 divya-281 requested a review from a team as a code owner May 21, 2024 12:59
Copy link

netlify bot commented May 21, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4811410
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/664c9a5a36b807000859b3a0
😎 Deploy Preview https://deploy-preview-16522--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 4811410
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/664c9a59f2857100081d4c4a
😎 Deploy Preview https://deploy-preview-16522--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@divya-281
Copy link
Contributor Author

I have read the DCO document and I hereby sign the DCO.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 630f188
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66ffc38eb05c500008208a2c
😎 Deploy Preview https://deploy-preview-16522--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 630f188
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66ffc38efa059400084e24f4
😎 Deploy Preview https://deploy-preview-16522--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@divya-281
Copy link
Contributor Author

recheck

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

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

There is a small gap on the left scroll button that allows you to see the text when you shouldn't be able to.

CleanShot.2024-06-17.at.11.41.24.mp4

This might be able to be resolved by updating with the latest from main, but there are conflicts that need to be resolved.

@laurenmrice laurenmrice requested a review from kingtraceyj June 17, 2024 16:44
Copy link
Member

@kingtraceyj kingtraceyj left a comment

Choose a reason for hiding this comment

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

I'm seeing a non-transparent background on the default tabs, but I know that there are open issues about this:
image

We should keep the fade on the default tabs and only take the fade out on contained tabs only.

Since the disabled border token is higher contrast, let's update the $border-disabled to $border-subtle in the default tabs.

@divya-281 divya-281 force-pushed the take-fade-out-tab-scroll branch from 4c84679 to 36c36ed Compare June 24, 2024 11:23
@divya-281
Copy link
Contributor Author

There is a small gap on the left scroll button that allows you to see the text when you shouldn't be able to.

CleanShot.2024-06-17.at.11.41.24.mp4
This might be able to be resolved by updating with the latest from main, but there are conflicts that need to be resolved.

Hi @tay1orjones I have rebased and resolved all conflicts

@divya-281
Copy link
Contributor Author

I'm seeing a non-transparent background on the default tabs, but I know that there are open issues about this: image

We should keep the fade on the default tabs and only take the fade out on contained tabs only.

Since the disabled border token is higher contrast, let's update the $border-disabled to $border-subtle in the default tabs.

Hey @kingtraceyj
In the issue It is mentioned that the

"Disabled border token in default line tabs should be $border-disabled
Current looks like a higher contrast than $border-subtle"

So could you confirm if I need to change the colour to $border-subtle?

@tay1orjones
Copy link
Member

@divya-281 could you try out this idea for a fix and see if we could fix the transparent left button issue in this PR? #15924 (comment)

@divya-281
Copy link
Contributor Author

divya-281 commented Jul 13, 2024

@divya-281 could you try out this idea for a fix and see if we could fix the transparent left button issue in this PR? #15924 (comment)

Hi @tay1orjones I added this suggestion also, and it fixed the left arrow button

@tay1orjones
Copy link
Member

@divya-281 looks good, but the border token still needs updated

@divya-281
Copy link
Contributor Author

@divya-281 looks good, but the border token still needs updated

Hi @tay1orjones This is how the disabled tabs look like with $border-subtle
Screenshot 2024-08-06 at 8 21 31 PM

@tay1orjones tay1orjones removed the request for review from kingtraceyj August 6, 2024 20:40
@divya-281 divya-281 force-pushed the take-fade-out-tab-scroll branch from 4f32684 to 7e532cf Compare September 23, 2024 11:18
@divya-281
Copy link
Contributor Author

@kingtraceyj @tay1orjones I have made the changes, Could you please review.

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.07%. Comparing base (033427b) to head (630f188).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16522   +/-   ##
=======================================
  Coverage   77.07%   77.07%           
=======================================
  Files         409      409           
  Lines       14021    14021           
  Branches     4307     4307           
=======================================
  Hits        10807    10807           
  Misses       3044     3044           
  Partials      170      170           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tay1orjones tay1orjones requested review from aagonzales and removed request for laurenmrice September 25, 2024 18:48
Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

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

Ok the problems previously mentioned look resolved but I noticed some things. The 1px gap between the default line tabs disappears as the container shrinks down. (Kind of hard to see the gif)

Sep-26-2024 14-59-09

image

The arrow button seems to be a bit delayed in disappearing when dragging the browser back out. Not sure if others are seeing this too.

Sep-26-2024 15-05-23

@divya-281
Copy link
Contributor Author

divya-281 commented Oct 1, 2024

Hi @tay1orjones these issues already exist in production and seem to be unrelated to my changes so I think I can work on it on another PR if that's okay

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

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

Yeah those are existing issues not related to this PR. @divya-281 could you open up a new issue outlining those issues?

@divya-281
Copy link
Contributor Author

Hi @tay1orjones @aagonzales I have created an issue for this

Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

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

Ok, ignoring those other issues this PR looks good. The fade looks properly removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants