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

igx-card-actions places elements with igxEnd in the igxStart container #14203

Closed
kdinev opened this issue May 10, 2024 · 1 comment
Closed

igx-card-actions places elements with igxEnd in the igxStart container #14203

kdinev opened this issue May 10, 2024 · 1 comment

Comments

@kdinev
Copy link
Member

kdinev commented May 10, 2024

Description

I have card actions with three elements and all are placed in the card actions start container, regardless of the directive they've been marked with.

  • igniteui-angular version: 17.2.0
  • browser: all

Steps to reproduce

  1. Create a card with the following action buttons:
    <igx-card-actions class="strategy-actions">
      <span igxStart class="horizontal-center navigatable" [routerLink]="['/strategies', 'details', strat.customUrl]">
        <igx-badge [value]="strat.comments ? strat.comments.length : 0" type="info"></igx-badge>
        <span i18n>Comments</span>
      </span>
      <button igxEnd igxButton="fab"
              [ngClass]="strat.votes | hasVoted:0:authUser:pipeTrigger"
              igxRipple
              (click)="voteStrat(strat, 0)" igxStart>
        <igx-icon title="vote up">thumb_up</igx-icon>
        <span *ngIf="strat.votes | votes:0:pipeTrigger">
          {{strat.votes | votes:0:pipeTrigger}}
        </span>
      </button>
      <button igxEnd igxButton="fab"
              [ngClass]="strat.votes | hasVoted:1:authUser:pipeTrigger"
              igxRipple
              (click)="voteStrat(strat, 1)" igxStart>
        <igx-icon title="vote down">thumb_down</igx-icon>
        <span *ngIf="strat.votes | votes:1:pipeTrigger">
          {{strat.votes | votes:1:pipeTrigger}}
        </span>
      </button>
    </igx-card-actions>
  1. Observe the card layout

Result

All items are in the start container.

Expected result

Comments should be in the start container and voting buttons in the end container.

Attachments

image

@kdinev
Copy link
Member Author

kdinev commented May 13, 2024

I just noticed that I'm applying both directives to the end buttons, which is my bad. This is not a bug.

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

No branches or pull requests

2 participants