Skip to content

Commit

Permalink
Merge branch 'main' into venkat/datepicker-prevent-disabledDates-sele…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
venkateshr06 authored Dec 3, 2024
2 parents 30d2d0f + 6107962 commit fd2a881
Show file tree
Hide file tree
Showing 31 changed files with 36 additions and 9 deletions.
32 changes: 29 additions & 3 deletions .storybook/stories/alert/app-level-alert.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ const template = `
(clrAlertClosedChange)="clrAlertClosedChange($event)"
>
<clr-alert-item *ngFor="let _ of createArray(itemCount); let i = index">
<span class="alert-text">{{ content }} {{ i + 1 }}</span>
<span class="alert-text">
{{ content }} {{ i + 1 }}
<a href="javascript://">
<cds-icon shape="user"></cds-icon>
Reset to green
</a>
</span>
<div *ngIf="showActions" class="alert-actions">
<button class="btn alert-action">Fix</button>
<button class="btn alert-action">Ignore</button>
Expand Down Expand Up @@ -122,7 +128,7 @@ const PaginatedTemplate: StoryFn = args => ({
template: `
<clr-alerts [clrCurrentAlertIndex]="clrCurrentAlertIndex">
<clr-alert
*ngFor="let alert of ALERT_TYPES"
*ngFor="let alert of ALERT_TYPES; let i = index"
[clrAlertAppLevel]="true"
[clrAlertClosable]="clrAlertClosable"
[clrAlertIcon]="clrAlertIcon"
Expand All @@ -131,7 +137,17 @@ const PaginatedTemplate: StoryFn = args => ({
(clrAlertClosedChange)="clrAlertClosedChange($event)"
>
<clr-alert-item>
<span class="alert-text">{{ content }} {{ alert }}</span>
<span class="alert-text">
{{ content }} {{ i + 1 }}
<a href="javascript://">
<cds-icon shape="user"></cds-icon>
Reset to green
</a>
</span>
<div *ngIf="showActions" class="alert-actions">
<button class="btn alert-action">Fix</button>
<button class="btn alert-action">Ignore</button>
</div>
</clr-alert-item>
</clr-alert>
</clr-alerts>
Expand Down Expand Up @@ -160,6 +176,16 @@ export const Paginated: StoryObj = {
},
};

export const PaginatedWithActions: StoryObj = {
render: PaginatedTemplate,
argTypes: paginatedArgTypes,
args: {
...paginatedArgs,
clrAlertClosable: false,
showActions: true,
},
};

export const PaginatedClosable: StoryObj = {
render: PaginatedTemplate,
argTypes: paginatedArgTypes,
Expand Down
12 changes: 6 additions & 6 deletions projects/angular/src/emphasis/alert/_alert.clarity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@
background: alert-variables.getAlertColor($alertType, bg-color);
color: alert-variables.getAlertColor($alertType, color);

& a {
& .alert-items .alert-item a {
color: alert-variables.getAlertColor($alertType, color);

cds-icon,
clr-icon {
fill: alert-variables.getAlertColor($alertType, color);
}
}

$border-prop: alert-variables.getAlertColor($alertType, border-color);
Expand Down Expand Up @@ -362,11 +367,6 @@
.close {
margin: var(--cds-global-space-4) 0;
}

.alert-action,
.dropdown-toggle {
text-decoration: none;
}
}

.alert-sm {
Expand Down
1 change: 1 addition & 0 deletions projects/angular/src/layout/tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export * from './tab-link.directive';
export * from './tab-action.directive';
export * from './tabs.module';

export { ClrTabsActionsPosition } from './tabs-actions';
export { TabsWillyWonka as ÇlrTabsWillyWonka } from './chocolate/tabs-willy-wonka';
export { ActiveOompaLoompa as ÇlrActiveOompaLoompa } from './chocolate/active-oompa-loompa';
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd2a881

Please sign in to comment.