playbook_ui_docs 14.9.0.pre.rc.11 → 14.9.0.pre.rc.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b11c2914a6946617494ccc3a839735bea447a02b9c9540db61a665f9044accf
4
- data.tar.gz: 46ca1d26653f44182d7da6f588dd9b400667a4358d670dcdd0046f07fa19e811
3
+ metadata.gz: 620213d92b80a906e5436ed5881c7201a397118f6de565fd237d6ef450bfae2f
4
+ data.tar.gz: 2dbc1cf0899c8a136bf7c3e388fd325b3b11305e26ce17677aa98a4a6efb2208
5
5
  SHA512:
6
- metadata.gz: d5a40ee3d3da9be2c33320d2cf17aeb7e45ce83538b946966423140260e8e19b3194a31e820872a28748f37ce75e73bbb42ede9305d9067910c1b9164c65da84
7
- data.tar.gz: a414e5e40c1644096d7fc0a5d35145af98483851e44999c922a932de4879c5da32a001750738c6f7a59be64926156a5f8e6b7b818763e3f6df8be80e55d3c2f6
6
+ metadata.gz: 20439e47e6914ccd0011b5955b4aadd9f7aa9d1548280fd1355250a816fc75415b1dc6b43aa36f83830869b13d5ecf7989e4bac88fee70077bedd5a15242fc95
7
+ data.tar.gz: 37f331dd9cf9cb7bc1dd340d9910f079f0e143995cd778e5b50148d4248c5cabc2d7a3bc298ae367ca195518317915f48027b6abd2609abb0fa0a1c79f2d364c
@@ -2,4 +2,5 @@
2
2
  <%= pb_rails("button", props: { text: "Button Secondary", variant: "secondary", margin_right: "lg" }) %>
3
3
  <%= pb_rails("button", props: { text: "Button Link", variant: "link", margin_right: "lg" }) %>
4
4
  <%= pb_rails("button", props: { text: "Button Disabled", disabled: true, margin_right: "lg" }) %>
5
+ <%= pb_rails("button", props: { text: "Button Danger", variant: "danger", margin_right: "lg" }) %>
5
6
 
@@ -34,6 +34,14 @@ const ButtonDefault = (props) => (
34
34
  text='Button Disabled'
35
35
  {...props}
36
36
  />
37
+ <Button
38
+ marginRight='lg'
39
+ onClick={() => alert("button clicked!")}
40
+ tabIndex={0}
41
+ text='Button Danger'
42
+ variant='danger'
43
+ {...props}
44
+ />
37
45
  </div>
38
46
  )
39
47
 
@@ -1 +1 @@
1
- The primary button is used for the most important button on the page. Secondary buttons can be used for actions that are less important. Button links can be helpful for buttons that do not need a lot of attention drawn to them. Disabled buttons are used when you don't want the user to click the button.
1
+ The primary button is used for the most important button on the page. Secondary buttons can be used for actions that are less important. Button links can be helpful for buttons that do not need a lot of attention drawn to them. Disabled buttons are used when you don't want the user to click the button. Danger buttons are used to indicate destructive actions such as deleting.