@@ -15,7 +15,7 @@ Colors in buttons are also related to communicating messages to the users about
Use the `btn` class for a default button, and combine it with other colors if a color different than `gnome-blue` is needed. The `btn` class should always be used on the buttons variants described on the next topics, except for the `links`.
{{<example>}}
~~~html
<divclass="container flex-grow">
<buttonclass="btn mr-2 my-2">GNOME Blue</button>
<buttonclass="btn red mr-2 my-2">Red</button>
...
...
@@ -23,13 +23,13 @@ Use the `btn` class for a default button, and combine it with other colors if a
Usually, squared buttons give a more serious feeling to the website. It can be used by default on the website (even combined with other variants like outlined) or it can be used in specific spots, but it is not recommended to be used next to a rounded button - it may cause inconsistency. Use `squared` class to produce this variant.
Larger buttons can be used to draw user attention, while smaller buttons can be used to fit inside smaller spaces. Add `small` or `large` classes to produce buttons in different sizes, but be careful not to create inconsistency by placing buttons with different sizes close to each other.
{{<example>}}
~~~html
<divclass="container flex-grow">
<buttonclass="btn small mr-2 my-2">Small</button>
<buttonclass="btn red small mr-2 my-2">Small</button>
...
...
@@ -73,13 +73,13 @@ Larger buttons can be used to draw user attention, while smaller buttons can be
<buttonclass="btn outline-yellow large squared mr-2 my-2">Large</button>
<buttonclass="btn outline-green large mr-2 my-2">Large</button>
</div>
{{</example>}}
~~~
## Disabled
When the user is forbidden to click some button, like when they need to fill a form before being able to click "Continue", it makes sense to show the user they can't click there. The disabled state can be added by using the `disabled` class.
{{<example>}}
~~~html
<divclass="container flex-grow">
<buttonclass="btn disabled small mr-2 my-2">Disabled</button>
<buttonclass="btn disabled small mr-2 my-2">Disabled</button>
...
...
@@ -87,13 +87,13 @@ When the user is forbidden to click some button, like when they need to fill a f
<buttonclass="btn disabled large squared mr-2 my-2">Disabled</button>
<buttonclass="btn disabled large mr-2 my-2">Disabled</button>
</div>
{{</example>}}
~~~
## Customized width
Buttons placed in columns instead of next to each other need to have the same width, otherwise, they'll look disharmonious. You may want to change the width to make the button look aligned with the text or form above it too. For spacing references, check the [spacing](#spacing) page on this documentation.
@@ -103,13 +103,12 @@ Buttons placed in columns instead of next to each other need to have the same wi
<buttonclass="btn green my-2 w-full">Green</button>
</div>
</div>
{{</example>}}
~~~
## Links
link buttons behave like regular anchors but they have a special look - they are buttons with no background, borders, or shadows, but they respect buttons colors and have an underline hover effect. Use the `link` class combined with colors.