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

[Progress] Fix 0% display and "inverted indicating" label color #412

Merged

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Jan 18, 2019

Description

When using progress

Fix 1

Trying to display "0%" was not recognized when given as a data-percent or data-value attribute. 0 was recognized as "false", thus it was not displayed at all.

Fix 2

Even when 0% was displayed (using JS), the progressbar already has increased to 2em, because this is set as min-width. Reason because of this is obviously to force the percentage display any time, as the text is inside the bar and would vanish if the bar itself would had a width of 0%.
To still show "0%" but also have the bar disappear to definately show zero progress, the background color is now simply transparent when the value is 0%. Percentages >0% will show the progressbar as before.

Fix 3

If the progress was inverted indicating the label below the bar was set to black. Simply because there wasn't a separate setting for the inverted variant.

In addition i replaced some !import settings by proper specificity classes

Testcase

Broken

http://jsfiddle.net/2a8gqb3d/

Fixed

http://jsfiddle.net/e2mj4fg8/

Screenshot

Broken

image

Fixed

image

Closes

Semantic-Org/Semantic-UI#6341
Semantic-Org/Semantic-UI#6445
Semantic-Org/Semantic-UI#6297
Semantic-Org/Semantic-UI-React#2672

Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

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

LGTM

@y0hami y0hami merged commit bad67cb into fomantic:develop Jan 22, 2019
@lubber-de lubber-de modified the milestones: 2.7.x, 2.7.2 Jan 22, 2019
@lubber-de lubber-de removed the state/awaiting-reviews Pull requests which are waiting for reviews label Jan 22, 2019
@y0hami y0hami mentioned this pull request Feb 4, 2019
@lubber-de lubber-de deleted the fix/6297/inverted_indicating_progress_label branch February 5, 2019 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/css Anything involving CSS lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants