Skip to content

Commit 71149ef

Browse files
aparzithePunderWoman
authored andcommitted
docs(docs-infra): Fix toggle button in dark mode
Fix visibility toggle button in dark mode Fix angular#66049
1 parent adabdcd commit 71149ef

10 files changed

Lines changed: 59 additions & 8 deletions

File tree

adev/src/content/examples/animations/src/app/enter-and-leave/enter-binding.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@
2626
transform: translateY(0);
2727
}
2828
}
29+
30+
.toggle-btn {
31+
background: transparent;
32+
border: 1px solid var(--primary-contrast, black);
33+
color: var(--primary-contrast, black);
34+
padding: 10px 24px;
35+
border-radius: 8px;
36+
cursor: pointer;
37+
}

adev/src/content/examples/animations/src/app/enter-and-leave/enter-binding.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- #docplaster -->
22
<h2><code>animate.enter</code> Binding Example</h2>
33

4-
<button type="button" (click)="toggle()">Toggle Element</button>
4+
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>
55

66
@if (isShown()) {
77
<div class="enter-container" [animate.enter]="enterClass()">

adev/src/content/examples/animations/src/app/enter-and-leave/enter.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@
2626
transform: translateY(0);
2727
}
2828
}
29+
30+
.toggle-btn {
31+
background: transparent;
32+
border: 1px solid var(--primary-contrast, black);
33+
color: var(--primary-contrast, black);
34+
padding: 10px 24px;
35+
border-radius: 8px;
36+
cursor: pointer;
37+
}

adev/src/content/examples/animations/src/app/enter-and-leave/enter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- #docplaster -->
22
<h2><code>animate.enter</code> Example</h2>
33

4-
<button type="button" (click)="toggle()">Toggle Element</button>
4+
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>
55

66
@if (isShown()) {
77
<div class="enter-container" animate.enter="enter-animation">

adev/src/content/examples/animations/src/app/enter-and-leave/leave-binding.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,16 @@
2020
.leaving {
2121
opacity: 0;
2222
transform: translateY(20px);
23-
transition: opacity 500ms ease-out, transform 500ms ease-out;
23+
transition:
24+
opacity 500ms ease-out,
25+
transform 500ms ease-out;
26+
}
27+
28+
.toggle-btn {
29+
background: transparent;
30+
border: 1px solid var(--primary-contrast, black);
31+
color: var(--primary-contrast, black);
32+
padding: 10px 24px;
33+
border-radius: 8px;
34+
cursor: pointer;
2435
}

adev/src/content/examples/animations/src/app/enter-and-leave/leave-binding.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- #docplaster -->
22
<h2><code>animate.leave</code> Binding Example</h2>
33

4-
<button type="button" (click)="toggle()">Toggle Element</button>
4+
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>
55

66
@if (isShown()) {
77
<div class="leave-container" [animate.leave]="farewell()">

adev/src/content/examples/animations/src/app/enter-and-leave/leave-event.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,16 @@
2020
.leaving {
2121
opacity: 0;
2222
transform: translateY(20px);
23-
transition: opacity 500ms ease-out, transform 500ms ease-out;
23+
transition:
24+
opacity 500ms ease-out,
25+
transform 500ms ease-out;
26+
}
27+
28+
.toggle-btn {
29+
background: transparent;
30+
border: 1px solid var(--primary-contrast, black);
31+
color: var(--primary-contrast, black);
32+
padding: 10px 24px;
33+
border-radius: 8px;
34+
cursor: pointer;
2435
}

adev/src/content/examples/animations/src/app/enter-and-leave/leave-event.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- #docplaster -->
22
<h2><code>animate.leave</code> Function Example</h2>
33

4-
<button type="button" (click)="toggle()">Toggle Element</button>
4+
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>
55

66
@if (isShown()) {
77
<div class="leave-container" (animate.leave)="leavingFn($event)">

adev/src/content/examples/animations/src/app/enter-and-leave/leave.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,16 @@
2020
.leaving {
2121
opacity: 0;
2222
transform: translateY(20px);
23-
transition: opacity 500ms ease-out, transform 500ms ease-out;
23+
transition:
24+
opacity 500ms ease-out,
25+
transform 500ms ease-out;
26+
}
27+
28+
.toggle-btn {
29+
background: transparent;
30+
border: 1px solid var(--primary-contrast, black);
31+
color: var(--primary-contrast, black);
32+
padding: 10px 24px;
33+
border-radius: 8px;
34+
cursor: pointer;
2435
}

adev/src/content/examples/animations/src/app/enter-and-leave/leave.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- #docplaster -->
22
<h2><code>animate.leave</code> Example</h2>
33

4-
<button type="button" (click)="toggle()">Toggle Element</button>
4+
<button type="button" class="toggle-btn" (click)="toggle()">Toggle Element</button>
55

66
@if (isShown()) {
77
<div class="leave-container" animate.leave="leaving">

0 commit comments

Comments
 (0)