x
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
<div tabindex="0" role="status" class="Polaris-Banner Polaris-Banner--statusInfo Polaris-Banner--withinPage"> <div class="Polaris-Banner__Body"> <div class="Polaris-Banner__ContentWrapper"> <div class="Polaris-Banner__Heading"> <span class="Polaris-Banner__InlineIcon"><span class="Polaris-Icon Polaris-Icon--colorHighlight Polaris-Icon--applyColor"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="-2 -2 20 20" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M8 1a7 7 0 1 1 0 14 7 7 0 0 1 0-14m-1.25 6a.75.75 0 0 0 0 1.5h.752v2.747a.75.75 0 0 0 1.5 0v-3.497a.75.75 0 0 0-.75-.75zm1.25-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2"></path></svg> </span></span> <h2 class="Polaris-Text--root Polaris-Text--headingSm Polaris-Text--semibold Polaris-Text--break"> USPS has updated their rates </h2> </div> <div class="Polaris-Banner__Message"> <p>Make sure you know how these changes affect your store.</p> </div> </div> <div class="Polaris-Banner__Actions"> <div class="Polaris-ButtonGroup"> <div class="Polaris-ButtonGroup__Item"> <a href="#" data-controller="polaris-button" class="Polaris-Button"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Update rates </div> </span> </a> </div> <div class="Polaris-ButtonGroup__Item"> <a href="#" data-controller="polaris-button" class="Polaris-Button"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Learn more </div> </span> </a> </div> </div> </div> <div class="Polaris-Banner__DismissButton"> <a aria-label="Dismiss" href="#" data-controller="polaris-button" class="Polaris-Button Polaris-Button--plain Polaris-Button--iconOnly"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Icon"> <span class="Polaris-Icon"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 20 20" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M12.72 13.78a.75.75 0 1 0 1.06-1.06l-2.72-2.72 2.72-2.72a.75.75 0 0 0-1.06-1.06l-2.72 2.72-2.72-2.72a.75.75 0 0 0-1.06 1.06l2.72 2.72-2.72 2.72a.75.75 0 1 0 1.06 1.06l2.72-2.72 2.72 2.72Z"></path></svg> </span> </div> </span> </a> </div> </div></div>1
2
3
4
5
6
7
8
9
10
11
<%= polaris_banner( title: "USPS has updated their rates", status: :info,) do |banner| %> <% banner.with_dismiss_button(url: "#") %> <p>Make sure you know how these changes affect your store.</p> <% banner.with_action(url: '#') { "Update rates" } %> <% banner.with_secondary_action(url: "#") { "Learn more" } %><% end %>No notes provided.
No params configured.