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

fix: extra arrow in tab component on resize #16652

Conversation

preetibansalui
Copy link
Contributor

Closes #16484

Fix: Extra arrow is visible in Tab component on resize

Testing / Reviewing

  1. Resize the screen to small size so that scroll is visible.
  2. It should display the arrow in tabs.
  3. Now resize it to normal size.
  4. It should remove the arrow as well.

Copy link

netlify bot commented Jun 4, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7fd88c6
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6667e7f9268ea500087e1629
😎 Deploy Preview https://deploy-preview-16652--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 Jun 4, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 7fd88c6
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6667e7f963a7490008bfbc5a
😎 Deploy Preview https://deploy-preview-16652--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.

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

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

This looks great in Chrome, however is still broken in Firefox.
Screenshot 2024-06-04 at 7 15 46 AM
Screenshot 2024-06-04 at 7 15 52 AM

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.

Still seeing some issues in chrome with the left arrow. It's not overlaying the tabs properly and doesn't seem to be clickable in certain situations. Selecting the tabs themselves does cause it to update the scroll position but it doesn't appear the button is actually being clicked

CleanShot.2024-06-05.at.13.30.28-converted.mp4

@preetibansalui
Copy link
Contributor Author

Still seeing some issues in chrome with the left arrow. It's not overlaying the tabs properly and doesn't seem to be clickable in certain situations. Selecting the tabs themselves does cause it to update the scroll position but it doesn't appear the button is actually being clicked

CleanShot.2024-06-05.at.13.30.28-converted.mp4

Thanks Taylor, I didn't checked that functionality bcs the issue was related to normal screen and arrow should not be visible. Let me check the functionality part.

@preetibansalui
Copy link
Contributor Author

fixed the left arrow issue although I feel sometimes when we play with arrows, it remove the arrows bcs of some calculations when all tabs are visible (not fully), I will raise a separate issue for this.

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

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

Looks to be working correctly now, I did tag design for a visual review also.

@tay1orjones
Copy link
Member

Just needs a visual review @alina-jacob

@Kritvi-bhatia17 Kritvi-bhatia17 self-requested a review June 10, 2024 10:48
Copy link
Contributor

@Kritvi-bhatia17 Kritvi-bhatia17 left a comment

Choose a reason for hiding this comment

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

Hi @preetibansalui, nice work! 🔥
Just wanted to confirm one small thing with you: Is it okay if the arrow still shows up while I'm increasing the screen size (you can see that at 00:05 sec)? It disappears when the mouse is moved out, but I wanted to check if this is acceptable. Everything else looks good to me from a design perspective!

Screen.Recording.2024-06-10.at.4.17.08.PM.mov

@preetibansalui
Copy link
Contributor Author

Hi @preetibansalui, nice work! 🔥 Just wanted to confirm one small thing with you: Is it okay if the arrow still shows up while I'm increasing the screen size (you can see that at 00:05 sec)? It disappears when the mouse is moved out, but I wanted to check if this is acceptable. Everything else looks good to me from a design perspective!

Screen.Recording.2024-06-10.at.4.17.08.PM.mov

Hi Kritvi, It should remove the arrow on a particular width, Here we have a debounce value before we apply changes on window's scroll event, Because of that it remove the arrow after you are done with resizing. I believe it should be acceptable bcs a user should not change window's width like this.

@alina-jacob
Copy link
Member

alina-jacob commented Jun 10, 2024

Hi @preetibansalui, this looks neat! 🚀

Just noticed this one change between the current storybook and the preview that you've shared (please ignore if irrelevant)
The arrow button seems to be working fine for the 'default' version, but the 'contained' version now has a gradient fading from UI colour to 'white', earlier it was UI colour to 'transparent'

Sharing a screenshot for reference, left is current storybook and right is a screenshot from the preview link shared above:

Tab comparison

@preetibansalui
Copy link
Contributor Author

Hi @preetibansalui, this looks neat! 🚀

Just noticed this one change between the current storybook and the preview that you've shared (please ignore if irrelevant) The arrow button seems to be working fine for the 'default' version, but the 'contained' version now have a gradient fading from UI colour to 'white', earlier it was UI colour to 'transparent'

Sharing a screenshot for reference, left is current storybook and right is a screenshot from the preview link shared above: Tab comparison

Hi @preetibansalui, this looks neat! 🚀

Just noticed this one change between the current storybook and the preview that you've shared (please ignore if irrelevant) The arrow button seems to be working fine for the 'default' version, but the 'contained' version now have a gradient fading from UI colour to 'white', earlier it was UI colour to 'transparent'

Sharing a screenshot for reference, left is current storybook and right is a screenshot from the preview link shared above: Tab comparison

Hi Alina, It looks like an issue, let me look into it. Thanks for pointing this out.

@Kritvi-bhatia17 Kritvi-bhatia17 self-requested a review June 10, 2024 13:44
Copy link
Contributor

@Kritvi-bhatia17 Kritvi-bhatia17 left a comment

Choose a reason for hiding this comment

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

ed.mp4

Thanks Taylor, I didn't checked that functionality bcs the issue was related to normal screen and arrow should not be visible. Let me check the functionality part.

In that case, it looks good to me after addressing the issue Alina mentioned!

@preetibansalui
Copy link
Contributor Author

Hi @preetibansalui, this looks neat! 🚀
Just noticed this one change between the current storybook and the preview that you've shared (please ignore if irrelevant) The arrow button seems to be working fine for the 'default' version, but the 'contained' version now have a gradient fading from UI colour to 'white', earlier it was UI colour to 'transparent'
Sharing a screenshot for reference, left is current storybook and right is a screenshot from the preview link shared above: Tab comparison

Hi @preetibansalui, this looks neat! 🚀
Just noticed this one change between the current storybook and the preview that you've shared (please ignore if irrelevant) The arrow button seems to be working fine for the 'default' version, but the 'contained' version now have a gradient fading from UI colour to 'white', earlier it was UI colour to 'transparent'
Sharing a screenshot for reference, left is current storybook and right is a screenshot from the preview link shared above: Tab comparison

Hi Alina, It looks like an issue, let me look into it. Thanks for pointing this out.

Hi @alina-jacob, I have made the changes, can you please review it again.

Copy link
Member

@alina-jacob alina-jacob left a comment

Choose a reason for hiding this comment

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

Looks good to go @preetibansalui! 🚀 💯

@preetibansalui preetibansalui added this pull request to the merge queue Jun 11, 2024
Merged via the queue into carbon-design-system:main with commit 7e57d8e Jun 11, 2024
22 checks passed
@preetibansalui preetibansalui deleted the 16484-extra-arrow-is-visible-in-tabs-on-resize branch June 11, 2024 06:48
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.

[Bug]: Extra Arrow is Visible in Tabs Component on resize
5 participants