-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify the meaning of button in the docs #158
base: main
Are you sure you want to change the base?
Changes from 5 commits
75b187f
1afe3fe
4cae0cf
736d225
ee5ecf6
f2161ad
bd2cff2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
(buttons)= | ||
## Buttons | ||
|
||
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had to add this in order to get the tests to pass, otherwise I would get:
|
||
```{button-link} https://example.com | ||
``` | ||
|
||
|
@@ -19,3 +22,13 @@ Button text | |
:color: secondary | ||
:expand: | ||
``` | ||
|
||
```{button-ref} buttons | ||
:color: info | ||
``` | ||
|
||
```{button-ref} buttons | ||
:color: info | ||
|
||
Reference Button Text | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.. _buttons: | ||
|
||
Buttons | ||
....... | ||
|
||
Comment on lines
+1
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto for this. Added to make tests pass. Patterned after the card-link snippet |
||
.. button-link:: https://example.com | ||
|
||
.. button-link:: https://example.com | ||
|
@@ -15,3 +20,11 @@ | |
.. button-link:: https://example.com | ||
:color: secondary | ||
:expand: | ||
|
||
.. button-ref:: buttons | ||
:color: info | ||
|
||
.. button-ref:: buttons | ||
:color: info | ||
|
||
Reference Button Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the link to Material Design here because I couldn't actually figure out how it was related to this section. I mean, I understand that Sphinx Design either depends on or takes inspiration from Material Design, but I just couldn't figure out how the information on the page about Material Buttons was supposed to help me use the SD directives,
button-link
andbutton-ref
, documented here.I moved the link to Bootstrap buttons up near the top and in a context that I'm hoping makes it seem more like an optional and auxiliary reference than it does here.
I also got feedback from one of my colleagues that these links (which take you to docs about buttons) made it harder to determine from this section of the SD docs if SD buttons were supposed to be buttons or links.