Skip to content

Commit 4cfe7ed

Browse files
committed
Changing font size,
1 parent dea7eaf commit 4cfe7ed

File tree

8 files changed

+7
-24
lines changed

8 files changed

+7
-24
lines changed

elements/pf-alert/demo/Expandable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h3 slot="header">Success alert title (expanded)</h3>
4040
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
4141
}
4242
.demo-description{
43-
padding: 1cm; /* שמירה על מרחק של ס"מ אחד מכל הצדדים */
43+
padding: 1cm;
4444
}
4545
</style>
4646

elements/pf-alert/demo/Inline-Variations.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ <h3 slot="header">Success alert title</h3>
4242

4343
.demo-description {
4444
padding: 1cm;
45-
/* שמירה על מרחק של ס"מ אחד מכל הצדדים */
4645
}
4746
</style>
4847

elements/pf-alert/demo/Inline-plain.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ <h3 slot="header">Success alert title</h3>
1919

2020
.demo-description {
2121
padding: 1cm;
22-
/* שמירה על מרחק של ס"מ אחד מכל הצדדים */
2322
}
2423
</style>
2524
<script type="module">

elements/pf-alert/demo/Types.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 slot="header">Danger alert title</h3>
3636

3737
}
3838
.demo-description{
39-
padding: 1cm; /* שמירה על מרחק של ס"מ אחד מכל הצדדים */
39+
padding: 1cm;
4040
}
4141
</style>
4242

elements/pf-alert/demo/Variations.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,5 @@ <h3 slot="header">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curab
6767

6868
.demo-description {
6969
padding: 1cm;
70-
/* שמירה על מרחק של ס"מ אחד מכל הצדדים */
7170
}
7271
</style>

elements/pf-alert/demo/inline-types.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h3 slot="header">Danger inline alert title</h3>
3333
box-shadow: 0 4px 12px #fff;
3434
}
3535
.demo-description{
36-
padding: 1cm; /* שמירה על מרחק של ס"מ אחד מכל הצדדים */
36+
padding: 1cm;
3737
}
3838
</style>
3939

elements/pf-alert/pf-alert.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,12 @@ header {
132132
#left-column pf-icon#arrow-icon,
133133
#header-actions pf-icon#close-button {
134134
--pf-icon--size: 16px;
135-
/* פתח/סגור עבור PatternFly: עדיף להגדיר גם את משתנה הצבע של ה־icon */
136135
--pf-c-icon--Color: #6a6e73;
137-
color: #6a6e73; /* גיבוי למקרים ש־pf-icon משתמש ב־color ישיר */
136+
color: #6a6e73;
138137
cursor: pointer;
139138
transition: color 0.2s ease, --pf-c-icon--Color 0.2s ease;
140139
}
141140

142-
/* מצבים: hover, active (בעת לחיצה), ומחלקת .active (שנוספה ב־JS) */
143141
#left-column pf-icon#arrow-icon:hover,
144142
#left-column pf-icon#arrow-icon:active,
145143
#left-column pf-icon#arrow-icon.active,

elements/pf-alert/pf-alert.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
// ייבוא הרכיבים של PatternFly
32
import { LitElement, type TemplateResult, html, isServer, render } from 'lit';
43
import { customElement } from 'lit/decorators/custom-element.js';
54
import { property } from 'lit/decorators/property.js';
@@ -67,17 +66,17 @@ export class PfAlert extends LitElement {
6766
const icons = this.renderRoot.querySelectorAll('#arrow-icon, #close-button');
6867
icons.forEach(icon => {
6968
icon.addEventListener('click', () => {
70-
// הסרה של active מכל האיקונים של כל הרכיבים
69+
// Remove active from all icons of all components
7170
document.querySelectorAll('pf-alert').forEach(alert => {
7271
const innerIcons = alert.renderRoot?.querySelectorAll('#arrow-icon, #close-button');
7372
innerIcons?.forEach(i => i.classList.remove('active'));
7473
});
75-
// הוספת active לאייקון הנוכחי
74+
// Add active to the current icon
7675
icon.classList.add('active');
7776
});
7877
});
7978

80-
// קליק בכל מקום אחר מחזיר למצב רגיל
79+
// Click anywhere else returns to normal mode
8180
document.addEventListener('click', event => {
8281
const path = event.composedPath();
8382
const clickedOnIcon = Array.from(icons).some(i => path.includes(i as EventTarget));
@@ -153,7 +152,6 @@ export class PfAlert extends LitElement {
153152

154153
#onClose() {
155154
if (this.dispatchEvent(new AlertCloseEvent('close'))) {
156-
// this.#close();
157155
}
158156
}
159157

@@ -198,7 +196,6 @@ export class PfAlert extends LitElement {
198196
const arrowDirection = hasDescription ? 'angle-down' : 'angle-right';
199197

200198

201-
// footer slot עם האקשנים
202199
const footer = html`<footer class="${classMap({ hasActions })}"
203200
@click="${this.#onActionsClick}">
204201
<!-- Provide actions that the user can take for the alert -->
@@ -261,14 +258,6 @@ export class PfAlert extends LitElement {
261258
`;
262259
}
263260

264-
// async #close() {
265-
// await this.updateComplete;
266-
// await Promise.all(this.getAnimations().map(x => {
267-
// x.finish();
268-
// return x.finished;
269-
// }));
270-
// this.remove();
271-
// }
272261

273262
async #onActionsClick(event: MouseEvent) {
274263
if (event.target instanceof HTMLElement
@@ -277,7 +266,6 @@ export class PfAlert extends LitElement {
277266
&& this.dispatchEvent(
278267
new AlertCloseEvent(event.target?.dataset.action.toLowerCase()),
279268
)) {
280-
// this.#close();
281269
}
282270
}
283271
}

0 commit comments

Comments
 (0)