Skip to content

fix: missing underline when using spaceEqually for ProgressIndicator #19213

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

Merged
merged 5 commits into from
Apr 25, 2025

Conversation

murito
Copy link
Contributor

@murito murito commented Apr 22, 2025

Closes #19164

Resolve the issue that prevented adding an underline when the spaceEqually attribute is applied to the ProgressIndicator

Changelog

Changed

  • A small CSS property was added to enable the component to display the missing underline.

Testing / Reviewing

Import the ProgressIndicator into a React component and add the spaceEqually attribute. When hovering over the items, they should display the underline.

@murito murito requested review from a team as code owners April 22, 2025 23:22
@murito murito requested review from heloiselui and annawen1 April 22, 2025 23:22
Copy link
Contributor

github-actions bot commented Apr 22, 2025

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

Copy link

netlify bot commented Apr 22, 2025

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit ceffb8b
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/680a67f1f3a72d00086991f3
😎 Deploy Preview https://deploy-preview-19213--v11-carbon-web-components.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.

@murito
Copy link
Contributor Author

murito commented Apr 22, 2025

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

Copy link

netlify bot commented Apr 22, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ceffb8b
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/680a67f132345f0007fa0f7e
😎 Deploy Preview https://deploy-preview-19213--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.

@murito
Copy link
Contributor Author

murito commented Apr 22, 2025

recheck

@Gururajj77
Copy link
Contributor

Hey @murito , could you please change the title to describe the fix in the PR??

@murito murito changed the title Murito fix bug 19164 fix: missing underline when using spaceEqually for ProgressIndicator Apr 23, 2025
Copy link
Contributor

@heloiselui heloiselui left a comment

Choose a reason for hiding this comment

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

Nice fix! Thanks for that, just a small suggestion, you could use $spacing-01 and -$spacing-01 instead of hardcoded 1px values, following the layout Sass guidelines.

@@ -80,6 +80,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;

.#{$prefix}--progress--space-equal .#{$prefix}--progress-text {
overflow: hidden;
padding: 1px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
padding: 1px;
padding: $spacing-01;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, sure, done!

@@ -80,6 +80,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;

.#{$prefix}--progress--space-equal .#{$prefix}--progress-text {
overflow: hidden;
padding: 1px;
margin: -1px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
margin: -1px;
margin: -$spacing-01;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, sure, done!

Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.41%. Comparing base (84d0e93) to head (ceffb8b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #19213   +/-   ##
=======================================
  Coverage   84.41%   84.41%           
=======================================
  Files         385      385           
  Lines       14563    14563           
  Branches     4806     4806           
=======================================
  Hits        12294    12294           
+ Misses       2110     2109    -1     
- Partials      159      160    +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@heloiselui heloiselui added this pull request to the merge queue Apr 25, 2025
Merged via the queue into carbon-design-system:main with commit 1dcc965 Apr 25, 2025
37 checks passed
sojinantony01 pushed a commit to sojinantony01/carbon that referenced this pull request May 1, 2025
…arbon-design-system#19213)

* fix: updating style rule to fix a component behavior

fix spaceEqually causing wrong behavior within the ProgressIndicator component

* refactor: change to css variables instead of hardcoded values
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]: Missing underline when using spaceEqually for ProgressIndicator
4 participants