Skip to content

Commit

Permalink
Merge branch 'main' into CDE-2441
Browse files Browse the repository at this point in the history
  • Loading branch information
spadidapelli authored Dec 5, 2024
2 parents cbfdd07 + 4fb22f7 commit d774fd7
Show file tree
Hide file tree
Showing 33 changed files with 40 additions and 14 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
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@
}

&.is-excluded {
color: tokens.$cds-alias-object-interaction-color-disabled;

&:hover {
background: none;
}
display: none;
}

&.is-selected {
Expand Down
3 changes: 3 additions & 0 deletions projects/angular/src/forms/datepicker/day.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export class ClrDay {
* Updates the selectedDay when the ClrDay is selected and closes the datepicker popover.
*/
selectDay(): void {
if (this.dayView.isDisabled) {
return;
}
const day: DayModel = this.dayView.dayModel;
this._dateNavigationService.notifySelectedDayChanged(day);
this.dateFormControlService.markAsDirty();
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 d774fd7

Please sign in to comment.