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: refactor Object Status to use an input property instead of content projection #3434

Merged
merged 2 commits into from
Sep 30, 2020

Conversation

InnaAtanasova
Copy link
Contributor

Please provide a link to the associated issue.

Part of #3420

Please provide a brief summary of this pull request.

Replace the content projection with an input property in order to apply the <span *ngIf="label" class="fd-object-status__text">{{ label }}</span> conditionally.

Before:

<span fd-object-status status="negative" inverted="true">Negative</span>

After:

<span fd-object-status status="negative" inverted="true" label="Negative"></span>

BREAKING CHANGE:
Replace the content projection of the Object Status with an input property called label.

@InnaAtanasova InnaAtanasova added this to the Sprint 47 - Bali milestone Sep 28, 2020
@InnaAtanasova InnaAtanasova requested a review from a team September 28, 2020 22:01
@InnaAtanasova InnaAtanasova self-assigned this Sep 28, 2020
@InnaAtanasova InnaAtanasova added this to In progress in Development via automation Sep 28, 2020
@netlify
Copy link

netlify bot commented Sep 28, 2020

Deploy preview for fundamental-ngx ready!

Built with commit 45f0000

https://deploy-preview-3434--fundamental-ngx.netlify.app

Copy link
Contributor

@JKMarkowski JKMarkowski left a comment

Choose a reason for hiding this comment

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

LGTM. I'm just wondering if the <ng-content> should be deprecated

<a fd-object-status status="critical" glyph="status-critical" clickable="true" label="Critical"></a>
<a fd-object-status status="positive" glyph="status-positive" clickable="true" label="Positive"></a>
<a fd-object-status status="informative" glyph="hint" clickable="true" label="Informative"></a>
<a fd-object-status glyph="to-be-reviewed" clickable="true" label="Default"></a>
Copy link
Contributor

Choose a reason for hiding this comment

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

Boolean values can't have static binding (false would be treated as true won't be applied in this case)

@JKMarkowski JKMarkowski merged commit bae50da into master Sep 30, 2020
Development automation moved this from In progress to Done Sep 30, 2020
@JKMarkowski JKMarkowski deleted the fix/refactor-object-status branch September 30, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants