Code example
Usually these will be used in combination with an icon, the popover can have a title or a list (both unordered and ordered) but they aren't mandatory. If you do add one of the mentioned items, please use the appropriate classes ox-popover__title
, ox-popover__content__list
or ox-popover__content__orderedlist
to provide the necessary styling.
Errors in form
- DWH: Utilisation not available
- DWH: Customer potential not availbale
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="ox-popover">
<input type="checkbox" class="ox-popover__toggle" id="toggle-popover">
<label for="toggle-popover" class="ox-icon ox-icon--danger ox-popover__icon"></label>
<div class="ox-popover__content-wrapper">
<div class="ox-popover__content">
<h4 class="ox-popover__title">Errors in form</h4>
<ol class="ox-popover__content__orderedlist">
<li>DWH: Utilisation not available</li>
<li>DWH: Customer potential not availbale</li>
</ol>
</div>
</div>
</div>
Positioning
Using the class ox-popover--left
you can make the popover stick out to the left of the triggering element.
Updates available, please refresh the app
- Bugs have been fixed
- New features have been added
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="ox-text--right">
<div class="ox-popover ox-popover--left">
<input type="checkbox" class="ox-popover__toggle" id="toggle-popover-left">
<label for="toggle-popover-left" class="ox-icon ox-icon--refresh ox-popover__icon"></label>
<div class="ox-popover__content-wrapper">
<div class="ox-popover__content">
<h4 class="ox-popover__title">Updates available, please refresh the app</h4>
<ul class="ox-popover__content__list">
<li>Bugs have been fixed</li>
<li>New features have been added</li>
</ul>
</div>
</div>
</div>
</div>
Colors
All functional colors can be used in combination with the popover. This can be done by adding one of the following classes to the popover element: ox-popover--update
, ox-popover--error
, ox-popover--warning
or ox-popover--success
.
Updates available, please refresh the app
- Bugs have been fixed
- New features have been added
Errors in form
- DWH: Utilisation not available
- DWH: Customer potential not availbale
Errors in form
- DWH: Utilisation not available
- DWH: Customer potential not availbale
Updates successfully installed
- Bugs have been fixed
- New features have been added
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div class="ox-popover ox-popover--update">
<input type="checkbox" class="ox-popover__toggle" id="toggle-popover-update">
<label for="toggle-popover-update" class="ox-icon ox-icon--refresh ox-popover__icon"></label>
<div class="ox-popover__content-wrapper">
<div class="ox-popover__content">
<h4 class="ox-popover__title">Updates available, please refresh the app</h4>
<ul class="ox-popover__content__list">
<li>Bugs have been fixed</li>
<li>New features have been added</li>
</ul>
</div>
</div>
</div>
<div class="ox-popover ox-popover--error">
<input type="checkbox" class="ox-popover__toggle" id="toggle-popover-error">
<label for="toggle-popover-error" class="ox-icon ox-icon--error ox-popover__icon"></label>
<div class="ox-popover__content-wrapper">
<div class="ox-popover__content">
<h4 class="ox-popover__title">Errors in form</h4>
<ol class="ox-popover__content__orderedlist">
<li>DWH: Utilisation not available</li>
<li>DWH: Customer potential not availbale</li>
</ol>
</div>
</div>
</div>
<div class="ox-popover ox-popover--warning">
<input type="checkbox" class="ox-popover__toggle" id="toggle-popover-warning">
<label for="toggle-popover-warning" class="ox-icon ox-icon--danger ox-popover__icon"></label>
<div class="ox-popover__content-wrapper">
<div class="ox-popover__content">
<h4 class="ox-popover__title">Errors in form</h4>
<ul class="ox-popover__content__orderedlist">
<li>DWH: Utilisation not available</li>
<li>DWH: Customer potential not availbale</li>
</ul>
</div>
</div>
</div>
<div class="ox-popover ox-popover--success">
<input type="checkbox" class="ox-popover__toggle" id="toggle-popover-success">
<label for="toggle-popover-success" class="ox-icon ox-icon--thumb-up ox-popover__icon"></label>
<div class="ox-popover__content-wrapper">
<div class="ox-popover__content">
<h4 class="ox-popover__title">Updates successfully installed</h4>
<ul class="ox-popover__content__list">
<li>Bugs have been fixed</li>
<li>New features have been added</li>
</ul>
</div>
</div>
</div>