Skip to content

Commit 57f34aa

Browse files
committed
refactor: Apply new PF6 card syntax to text editor wrapper card
Signed-off-by: Felicitas Pojtinger <[email protected]>
1 parent 0b013fc commit 57f34aa

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Modern network boot server.
66

7+
<br/>
8+
79
[![hydrun CI](https://github.com/pojntfx/bofied/actions/workflows/hydrun.yaml/badge.svg)](https://github.com/pojntfx/bofied/actions/workflows/hydrun.yaml)
810
[![Docker CI](https://github.com/pojntfx/bofied/actions/workflows/docker.yaml/badge.svg)](https://github.com/pojntfx/bofied/actions/workflows/docker.yaml)
911
[![Go Reference](https://pkg.go.dev/badge/github.com/pojntfx/bofied.svg)](https://pkg.go.dev/github.com/pojntfx/bofied)

pkg/components/text_editor_wrapper.go

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (c *TextEditorWrapper) Render() app.UI {
2020
Class("pf-v6-c-card pf-m-plain pf-v6-u-h-100").
2121
Body(
2222
app.Div().
23-
Class("pf-v6-c-card__header pf-v6-x-m-gap-md").
23+
Class("pf-v6-c-card__header").
2424
Body(
2525
app.If(
2626
c.HelpLink != "",
@@ -34,16 +34,28 @@ func (c *TextEditorWrapper) Render() app.UI {
3434
Target("_blank").
3535
Href(c.HelpLink).
3636
Body(
37-
app.I().
38-
Class("fas fa-question-circle").
39-
Aria("hidden", true),
37+
app.Span().
38+
Class("pf-v6-c-menu-toggle__text").
39+
Body(
40+
app.I().
41+
Class("fas fa-question-circle").
42+
Aria("hidden", true),
43+
),
4044
),
4145
)
4246
},
4347
),
4448
app.Div().
45-
Class("pf-v6-c-card__title").
46-
Text(c.Title),
49+
Class("pf-v6-c-card__header-main").
50+
Body(
51+
app.Div().
52+
Class("pf-v6-c-card__title").
53+
Body(
54+
app.H2().
55+
Class("pf-v6-c-card__title-text").
56+
Text(c.Title),
57+
),
58+
),
4759
),
4860
app.Div().
4961
Class("pf-v6-c-card__body").

0 commit comments

Comments
 (0)