Skip to content

Commit 3eff968

Browse files
chore: add changeset for pf-hint component
1 parent f051212 commit 3eff968

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.changeset/real-comics-leave.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@patternfly/elements": minor
3+
---
4+
5+
Added pf-hint component
6+

elements/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@
129129
"castastrophe (https://github.com/castastrophe)",
130130
"Wes Ruvalcaba",
131131
"Rohit Bharmal (https://github.com/Rohit2601)",
132-
"Ajinyka Shinde <[email protected]>"
132+
"Ajinyka Shinde <[email protected]>",
133+
"Gili Greenberger (https://github.com/Gili-Greenberger)"
133134
],
134135
"dependencies": {
135136
"@lit/context": "^1.1.5",

elements/pf-hint/pf-hint.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,6 @@ import styles from './pf-hint.css';
1313
*
1414
* @summary Provides inline contextual help or information to users
1515
* @alias Hint
16-
*
17-
* @slot - Body content of the hint
18-
* @slot title - Optional title for the hint
19-
* @slot footer - Optional footer content, typically containing action links or buttons
20-
* @slot actions - Optional actions menu (e.g., kebab menu)
21-
*
22-
* @csspart container - The hint container element
23-
* @csspart title - The title element
24-
* @csspart body - The body element
25-
* @csspart footer - The footer element
26-
* @csspart actions - The actions element
2716
*/
2817
@customElement('pf-hint')
2918
export class PfHint extends LitElement {
@@ -44,23 +33,27 @@ export class PfHint extends LitElement {
4433
part="actions"
4534
class="pf-c-hint__actions"
4635
?hidden=${this.#slots.isEmpty('actions')}>
36+
<!-- summary: Actions menu (e.g., kebab dropdown) -->
4737
<slot name="actions"></slot>
4838
</div>
4939
<div id="title"
5040
part="title"
5141
class="pf-c-hint__title"
5242
?hidden=${this.#slots.isEmpty('title')}>
43+
<!-- summary: Optional title for the hint -->
5344
<slot name="title"></slot>
5445
</div>
5546
<div id="body"
5647
part="body"
5748
class="pf-c-hint__body">
49+
<!-- summary: Body content of the hint. Main informational text. -->
5850
<slot></slot>
5951
</div>
6052
<div id="footer"
6153
part="footer"
6254
class="pf-c-hint__footer"
6355
?hidden=${this.#slots.isEmpty('footer')}>
56+
<!-- summary: Optional footer content, typically containing action links or buttons -->
6457
<slot name="footer"></slot>
6558
</div>
6659
</div>

0 commit comments

Comments
 (0)