Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Commit 0e4e6c6

Browse files
feat: improved action-bar component
1 parent 1b9f8c0 commit 0e4e6c6

File tree

20 files changed

+347
-299
lines changed

20 files changed

+347
-299
lines changed

src/components/ActionBar/ActionBar.vue

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/components/ActionBar/__tests__/ActionBar.test.js

Lines changed: 0 additions & 93 deletions
This file was deleted.

src/components/ActionBar/__tests__/__snapshots__/ActionBar.test.js.snap

Lines changed: 0 additions & 125 deletions
This file was deleted.

src/components/ActionBar/index.js

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`ActionBar renders back-button-slot 1`] = `
4+
<div
5+
class="fd-action-bar"
6+
>
7+
<div
8+
class="fd-action-bar__back"
9+
>
10+
<button
11+
class="fd-button--light sap-icon--nav-back"
12+
/>
13+
</div>
14+
15+
<div
16+
class="fd-action-bar__header"
17+
>
18+
19+
</div>
20+
21+
</div>
22+
`;
23+
24+
exports[`ActionBar renders correctly in it's full glory 1`] = `
25+
<div
26+
class="fd-action-bar"
27+
>
28+
<div
29+
class="fd-action-bar__back"
30+
>
31+
<button
32+
class="fd-button--light sap-icon--nav-back"
33+
/>
34+
</div>
35+
36+
<div
37+
class="fd-action-bar__header"
38+
>
39+
<h3
40+
class="fd-action-bar__title"
41+
>
42+
Action Bar Title
43+
</h3>
44+
45+
<p
46+
class="fd-action-bar__description"
47+
>
48+
Action Bar Description
49+
</p>
50+
</div>
51+
52+
<div
53+
class="fd-action-bar__actions"
54+
>
55+
<button
56+
class="fd-button fd-button--positive sap-icon--accept"
57+
>
58+
Approve
59+
</button>
60+
61+
<button
62+
class="fd-button fd-button--negative sap-icon--decline"
63+
>
64+
Reject
65+
</button>
66+
</div>
67+
</div>
68+
`;
69+
70+
exports[`ActionBar renders header-title-slot 1`] = `
71+
<div
72+
class="fd-action-bar"
73+
>
74+
<div
75+
class="fd-action-bar__back"
76+
/>
77+
78+
<div
79+
class="fd-action-bar__header"
80+
>
81+
<h3
82+
class="fd-action-bar__title"
83+
>
84+
Action Bar Title
85+
</h3>
86+
87+
</div>
88+
89+
</div>
90+
`;

0 commit comments

Comments
 (0)