Skip to content

Commit 60b9318

Browse files
committed
Merge branch 'main' into beta
2 parents b1187ae + acf38bd commit 60b9318

File tree

3 files changed

+46
-26
lines changed

3 files changed

+46
-26
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# [1.9.0-beta.2](https://github.com/otto-de/b2b-design-system/compare/v1.9.0-beta.1...v1.9.0-beta.2) (2023-11-28)
22

3-
43
### Bug Fixes
54

65
* **Icon:** added inheritable color for warning hint icon ([dfebdfc](https://github.com/otto-de/b2b-design-system/commit/dfebdfcbecc4f453b2cd4a83f93b9cfacfb81139))
@@ -12,6 +11,13 @@
1211

1312
* **Icon:** added warning-hint icon ([a1823b5](https://github.com/otto-de/b2b-design-system/commit/a1823b5a7f7fa7399bb6f3f46f5e17aaf8292431))
1413

14+
## [1.8.2](https://github.com/otto-de/b2b-design-system/compare/v1.8.1...v1.8.2) (2023-12-01)
15+
16+
### Bug Fixes
17+
18+
* **Anchor:** [B2BDS-237] added forced stacking context to avoid host element hiding anchor ([35d235c](https://github.com/otto-de/b2b-design-system/commit/35d235cce239afbac761db403669a77dcea289ba))
19+
20+
1521
## [1.8.1](https://github.com/otto-de/b2b-design-system/compare/v1.8.0...v1.8.1) (2023-11-22)
1622

1723

Original file line numberDiff line numberDiff line change
@@ -1,22 +1,34 @@
11
@use 'sass:color';
22
@use '../../global/b2b-styles';
33

4-
.b2b-anchor {
5-
font-family: var(--b2b-font-family-default);
6-
color: var(--b2b-color-copy-default);
7-
text-decoration: underline;
8-
transition: all 0.3s ease;
4+
:host {
5+
// related to B2BDS-237
6+
z-index: 0;
7+
width: fit-content;
8+
height: fit-content;
9+
position: relative;
910

10-
&:hover {
11-
color: var(--b2b-color-red-100);
12-
cursor: pointer;
13-
}
11+
.b2b-anchor {
12+
font-family: var(--b2b-font-family-default);
13+
color: var(--b2b-color-copy-default);
14+
text-decoration: underline;
15+
transition: all 0.3s ease;
1416

15-
&--100 {
16-
font-size: var(--b2b-size-copy-100);
17-
}
17+
// related to B2BDS-237
18+
z-index: 1001;
19+
position: relative;
20+
21+
&:hover {
22+
color: var(--b2b-color-red-100);
23+
cursor: pointer;
24+
}
25+
26+
&--100 {
27+
font-size: var(--b2b-size-copy-100);
28+
}
1829

19-
&--inherit {
20-
font-size: inherit;
30+
&--inherit {
31+
font-size: inherit;
32+
}
2133
}
2234
}

packages/core-components/src/components/anchor/anchor.tsx

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Prop, h } from '@stencil/core';
1+
import { Component, Prop, Host, h } from '@stencil/core';
22

33
@Component({
44
tag: 'b2b-anchor',
@@ -21,16 +21,18 @@ export class AnchorComponent {
2121

2222
render() {
2323
return (
24-
<a
25-
href={this.href}
26-
download={this.download}
27-
target={`_${this.target}`}
28-
class={{
29-
'b2b-anchor': true,
30-
[`b2b-anchor--${this.size}`]: true,
31-
}}>
32-
<slot></slot>
33-
</a>
24+
<Host>
25+
<a
26+
href={this.href}
27+
download={this.download}
28+
target={`_${this.target}`}
29+
class={{
30+
'b2b-anchor': true,
31+
[`b2b-anchor--${this.size}`]: true,
32+
}}>
33+
<slot></slot>
34+
</a>
35+
</Host>
3436
);
3537
}
3638
}

0 commit comments

Comments
 (0)