Skip to content

Commit a5853ca

Browse files
committed
1 parent 1c7b3a9 commit a5853ca

File tree

8 files changed

+76
-3
lines changed

8 files changed

+76
-3
lines changed

addon/components/au-button.gts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const SKINS = [
99
'naked',
1010
'link',
1111
'link-secondary',
12+
'link-bold',
1213
] as const;
1314

1415
export interface AuButtonSignature {

addon/components/au-link-external.gts

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import AuIcon, { type AuIconSignature } from './au-icon';
44
const SKIN_CLASSES = {
55
primary: 'au-c-link',
66
secondary: 'au-c-link au-c-link--secondary',
7+
bold: 'au-c-link au-c-link--bold',
78
button: 'au-c-button au-c-button--primary',
89
'button-secondary': 'au-c-button au-c-button--secondary',
910
'button-naked': 'au-c-button au-c-button--naked',
@@ -18,6 +19,7 @@ export interface AuLinkExternalSignature {
1819
skin?:
1920
| 'primary'
2021
| 'secondary'
22+
| 'bold'
2123
| 'button'
2224
| 'button-secondary'
2325
| 'button-naked';

addon/components/au-link.gts

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import linkToModels from '../private/helpers/link-to-models';
66
const SKIN_CLASSES = {
77
primary: 'au-c-link',
88
secondary: 'au-c-link au-c-link--secondary',
9+
bold: 'au-c-link au-c-link--bold',
910
button: 'au-c-button au-c-button--primary',
1011
'button-secondary': 'au-c-button au-c-button--secondary',
1112
'button-naked': 'au-c-button au-c-button--naked',
@@ -17,6 +18,7 @@ export interface AuLinkSignature {
1718
skin?:
1819
| 'primary'
1920
| 'secondary'
21+
| 'bold'
2022
| 'button'
2123
| 'button-secondary'
2224
| 'button-naked';

stories/5-components/Buttons/AuButton.stories.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
text: { control: 'text', description: '' },
88
skin: {
99
control: 'select',
10-
options: ['primary', 'secondary', 'naked', 'link', 'link-secondary'],
10+
options: ['primary', 'secondary', 'naked', 'link', 'link-bold' ,'link-secondary'],
1111
description: 'Defines the style of the button',
1212
},
1313
size: {
@@ -136,3 +136,18 @@ SecondaryLink.args = {
136136
disabled: false,
137137
loading: false,
138138
};
139+
140+
export const BoldLink = Template.bind({});
141+
BoldLink.args = {
142+
text: 'Bold link',
143+
skin: 'link-bold',
144+
size: '',
145+
icon: '',
146+
iconAlignment: 'left',
147+
hideText: false,
148+
width: '',
149+
wrap: '',
150+
alert: false,
151+
disabled: false,
152+
loading: false,
153+
};

stories/5-components/Links/AuLink.stories.js

+16
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default {
1414
options: [
1515
'primary',
1616
'secondary',
17+
'bold',
1718
'button',
1819
'button-secondary',
1920
'button-naked',
@@ -98,6 +99,21 @@ Secondary.parameters = {
9899
chromatic: { disableSnapshot: true },
99100
};
100101

102+
export const Bold = Template.bind({});
103+
Bold.args = {
104+
text: 'Bold',
105+
route: 'index',
106+
skin: 'bold',
107+
icon: '',
108+
iconAlignment: 'left',
109+
hideText: false,
110+
width: '',
111+
active: false,
112+
};
113+
Bold.parameters = {
114+
chromatic: { disableSnapshot: true },
115+
};
116+
101117
export const PrimaryButton = Template.bind({});
102118
PrimaryButton.args = {
103119
text: 'Primary Button',

stories/5-components/Links/AuLinkExternal.stories.js

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default {
1111
options: [
1212
'primary',
1313
'secondary',
14+
'bold',
1415
'button',
1516
'button-secondary',
1617
'button-naked',
@@ -84,6 +85,18 @@ Secondary.args = {
8485
width: '',
8586
};
8687

88+
export const Bold = Template.bind({});
89+
Bold.args = {
90+
text: 'External link',
91+
href: 'https://www.vlaanderen.be/',
92+
route: 'index',
93+
skin: 'bold',
94+
icon: 'manual',
95+
iconAlignment: 'left',
96+
hideText: false,
97+
width: '',
98+
};
99+
87100
export const PrimaryButton = Template.bind({});
88101
PrimaryButton.args = {
89102
text: 'External link',

styles/components/_c-button.scss

+15-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ $au-button-link-icon-only-width: $au-button-link-height !default;
191191
}
192192

193193
// Link button
194-
.au-c-button--link {
194+
.au-c-button--link,
195+
.au-c-button--link-bold {
195196
font-size: inherit;
196197
border-color: transparent;
197198
padding: 0 $au-unit-tiny 0;
@@ -236,6 +237,17 @@ $au-button-link-icon-only-width: $au-button-link-height !default;
236237
}
237238
}
238239

240+
.au-c-button--link-bold {
241+
font-weight: var(--au-medium);
242+
text-decoration: none;
243+
244+
&:hover,
245+
&:focus-visible,
246+
&:active {
247+
text-decoration: underline;
248+
}
249+
}
250+
239251
// Link secondary button
240252
.au-c-button--link-secondary {
241253
font-size: inherit;
@@ -364,7 +376,8 @@ $au-button-link-icon-only-width: $au-button-link-height !default;
364376
}
365377

366378
&.au-c-button--link,
367-
&.au-c-button--link-secondary {
379+
&.au-c-button--link-secondary,
380+
&.au-c-button--link-bold {
368381
background-color: transparent;
369382

370383
&,

styles/components/_c-link.scss

+11
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ $au-link-secondary-active-color: var(--au-gray-900) !default;
5858
========================================================================== */
5959

6060
.au-c-link--secondary {
61+
6162
&,
6263
&:visited {
6364
color: $au-link-secondary-color;
@@ -80,6 +81,16 @@ $au-link-secondary-active-color: var(--au-gray-900) !default;
8081
}
8182
}
8283

84+
.au-c-link--bold {
85+
text-decoration: none;
86+
font-weight: var(--au-medium);
87+
88+
&:hover,
89+
&:focus {
90+
text-decoration: underline;
91+
}
92+
}
93+
8394
.au-c-link--icon-only {
8495
.au-c-icon {
8596
width: 1.8rem;

0 commit comments

Comments
 (0)