You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Adding class <codeclass="format-code">.wds-is-secondary</code> changes the button's looks. It is used to create a button that draws less user's attention.</p>
42
+
<p>Adding class <codeclass="format-code">.wds-is-secondary</code> changes the button's looks. It is used to create
<p>Adding <codeclass="format-code">.wds-dropdown</code> class and dropdown component inside button component will result in dropdown hidden behind a button</p>
<p>These buttons are denoted with <codeclass="format-code">.wds-is-text</code> class. They are the least obtrusive. Nevertheless, their paddings remain untouched, which provides the same clickable area.</p>
101
+
<p>These buttons are denoted with <codeclass="format-code">.wds-is-text</code> class. They are the least obtrusive.
102
+
Nevertheless, their paddings remain untouched, which provides the same clickable area.</p>
<strong>Important note:</strong> for readability purposes we use different styling for squished button in Global Navigation for Chinese - the font is larger and has bold removed.
94
-
This is why in <codeclass="format-code">/scss/wds-components/_global-navigation.scss</code> you will find the following piece of code:
168
+
<strong>Important note:</strong> for readability purposes we use different styling for squished button in Global
169
+
Navigation for Chinese - the font is larger and has bold removed.
170
+
This is why in <codeclass="format-code">/scss/wds-components/_global-navigation.scss</code> you will find the
Please remember, that this solution is only single-use and temporary. It is not recommended to apply it as a common solution in other places/components.
180
+
Please remember, that this solution is only single-use and temporary. It is not recommended to apply it as a
181
+
common solution in other places/components.
104
182
If it becomes a broader issue, more versatile and maintainable solution must be implemented.
<p>For a button greater in size use <codeclass="format-code">.wds-is-stretched</code> class. This may come in handy to draw more user's attention to the button and increase the clickable area around the label.</p>
188
+
<p>For a button greater in size use <codeclass="format-code">.wds-is-stretched</code> class. This may come in handy
189
+
to draw more user's attention to the button and increase the clickable area around the label.</p>
<p>For a fixed size square button use <codeclass="format-code">.wds-is-square</code> class. This button will be 45px x 45px with content centered inside. This type of button is mostly used for icons, example: social icons.</p>
215
+
<h2id="sizes:square">Button sizes: square</h2>
216
+
<p>For a fixed size square button use <codeclass="format-code">.wds-is-square</code> class. This button will be
217
+
45px x 45px with content centered inside. This type of button is mostly used for icons, example: social icons.
<p>When no special handlers of the click event are needed — just navigation to a certain URL, consider using an anchor tag <code><a></code> styled as a button. It is achieved by adding a <codeclass="format-code">.wds-button</code> class just like for the <code><button></code> element. Optionally add any other desired button classes.</p>
239
+
<p>When no special handlers of the click event are needed — just navigation to a certain URL, consider using an
240
+
anchor tag <code><a></code> styled as a button. It is achieved by adding a <codeclass="format-code">.wds-button</code>
241
+
class just like for the <code><button></code> element. Optionally add any other desired button classes.
0 commit comments