Skip to content

Commit bc587d1

Browse files
committed
Dental representation updates
1 parent 5502ac5 commit bc587d1

6 files changed

Lines changed: 11 additions & 42 deletions

File tree

src/app/benefits-demo/clinical-record/clinical-record.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1>{{ getPatientDisplayName(patient) }}</h1>
4747
class="module-option"
4848
[class.active]="selectedModule === 'dentistry'"
4949
(click)="setSelectedModule('dentistry')">
50-
Dentistry
50+
Dental
5151
</button>
5252
<button
5353
mat-stroked-button

src/app/benefits-demo/dentistry-record/dentistry-odontogram-anatomic/dentistry-odontogram-anatomic.component.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
transition: color 0.16s ease;
3030
}
3131

32-
.tooth:focus-visible {
33-
color: #5361e6;
34-
outline: none;
35-
}
36-
3732
.tooth:hover {
3833
color: #6678ea;
3934
}

src/app/benefits-demo/dentistry-record/dentistry-odontogram-anatomic/dentistry-odontogram-anatomic.component.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,11 @@
102102
[class.selected]="isSelected(tooth.id)"
103103
[attr.aria-label]="'Tooth ' + tooth.notations.fdi"
104104
[attr.aria-selected]="isSelected(tooth.id)"
105-
role="option"
106-
tabindex="0"
107105
(mousedown)="$event.preventDefault()"
108106
(click)="onPinTooth(tooth)"
109107
(mouseenter)="onMouseEnter(tooth, $event)"
110108
(mousemove)="toothMouseMove.emit($event)"
111-
(mouseleave)="toothMouseLeave.emit()"
112-
(keydown.enter)="onPinTooth(tooth)"
113-
(keydown.space)="onPinTooth(tooth); $event.preventDefault()">
109+
(mouseleave)="toothMouseLeave.emit()">
114110
<path class="tooth-outline" [attr.d]="tooth.outlinePath"></path>
115111
<path class="tooth-shadow" [attr.d]="tooth.shadowPath"></path>
116112
<ng-container *ngFor="let option of surfaceOptions">

src/app/benefits-demo/dentistry-record/dentistry-odontogram-root-surface/dentistry-odontogram-root-surface.component.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@
5151
color: #2f49d1;
5252
}
5353

54-
.root-tooth:focus-visible {
55-
outline: none;
56-
color: #5361e6;
54+
.root-tooth.selected .tooth-node {
55+
fill: rgba(47, 73, 209, 0.24);
5756
}
5857

5958
.tooth-node {
@@ -96,7 +95,7 @@
9695

9796
.tooth-label {
9897
fill: #2f3847;
99-
font-size: 6px;
98+
font-size: 12px;
10099
font-weight: 700;
101100
text-anchor: middle;
102101
user-select: none;

src/app/benefits-demo/dentistry-record/dentistry-odontogram-root-surface/dentistry-odontogram-root-surface.component.html

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,11 @@ <h3>Root Surface Odontogram (Dennison)</h3>
2525
class="root-tooth"
2626
[class.selected]="isSelected(positioned.tooth.id)"
2727
[attr.transform]="'translate(' + positioned.x + ',' + positioned.y + ') scale(' + getToothScale(positioned.tooth) + ')'"
28-
role="option"
29-
tabindex="0"
3028
[attr.aria-label]="'Tooth ' + positioned.tooth.notations.fdi"
3129
[attr.aria-selected]="isSelected(positioned.tooth.id)"
3230
(mouseenter)="onMouseEnter(positioned.tooth, $event)"
3331
(mousemove)="toothMouseMove.emit($event)"
34-
(mouseleave)="toothMouseLeave.emit()"
35-
(keydown.enter)="onPinTooth(positioned.tooth)"
36-
(keydown.space)="onPinTooth(positioned.tooth); $event.preventDefault()">
32+
(mouseleave)="toothMouseLeave.emit()">
3733
<circle
3834
class="tooth-node"
3935
cx="0"
@@ -72,15 +68,11 @@ <h3>Root Surface Odontogram (Dennison)</h3>
7268
class="root-tooth"
7369
[class.selected]="isSelected(positioned.tooth.id)"
7470
[attr.transform]="'translate(' + positioned.x + ',' + positioned.y + ') scale(' + getToothScale(positioned.tooth) + ')'"
75-
role="option"
76-
tabindex="0"
7771
[attr.aria-label]="'Tooth ' + positioned.tooth.notations.fdi"
7872
[attr.aria-selected]="isSelected(positioned.tooth.id)"
7973
(mouseenter)="onMouseEnter(positioned.tooth, $event)"
8074
(mousemove)="toothMouseMove.emit($event)"
81-
(mouseleave)="toothMouseLeave.emit()"
82-
(keydown.enter)="onPinTooth(positioned.tooth)"
83-
(keydown.space)="onPinTooth(positioned.tooth); $event.preventDefault()">
75+
(mouseleave)="toothMouseLeave.emit()">
8476
<circle
8577
class="tooth-node"
8678
cx="0"
@@ -119,15 +111,11 @@ <h3>Root Surface Odontogram (Dennison)</h3>
119111
class="root-tooth"
120112
[class.selected]="isSelected(positioned.tooth.id)"
121113
[attr.transform]="'translate(' + positioned.x + ',' + positioned.y + ') scale(' + getToothScale(positioned.tooth) + ')'"
122-
role="option"
123-
tabindex="0"
124114
[attr.aria-label]="'Tooth ' + positioned.tooth.notations.fdi"
125115
[attr.aria-selected]="isSelected(positioned.tooth.id)"
126116
(mouseenter)="onMouseEnter(positioned.tooth, $event)"
127117
(mousemove)="toothMouseMove.emit($event)"
128-
(mouseleave)="toothMouseLeave.emit()"
129-
(keydown.enter)="onPinTooth(positioned.tooth)"
130-
(keydown.space)="onPinTooth(positioned.tooth); $event.preventDefault()">
118+
(mouseleave)="toothMouseLeave.emit()">
131119
<circle
132120
class="tooth-node"
133121
cx="0"
@@ -166,15 +154,11 @@ <h3>Root Surface Odontogram (Dennison)</h3>
166154
class="root-tooth"
167155
[class.selected]="isSelected(positioned.tooth.id)"
168156
[attr.transform]="'translate(' + positioned.x + ',' + positioned.y + ') scale(' + getToothScale(positioned.tooth) + ')'"
169-
role="option"
170-
tabindex="0"
171157
[attr.aria-label]="'Tooth ' + positioned.tooth.notations.fdi"
172158
[attr.aria-selected]="isSelected(positioned.tooth.id)"
173159
(mouseenter)="onMouseEnter(positioned.tooth, $event)"
174160
(mousemove)="toothMouseMove.emit($event)"
175-
(mouseleave)="toothMouseLeave.emit()"
176-
(keydown.enter)="onPinTooth(positioned.tooth)"
177-
(keydown.space)="onPinTooth(positioned.tooth); $event.preventDefault()">
161+
(mouseleave)="toothMouseLeave.emit()">
178162
<circle
179163
class="tooth-node"
180164
cx="0"

src/app/benefits-demo/dentistry-record/dentistry-odontogram-root-surface/dentistry-odontogram-root-surface.component.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,8 @@ export class DentistryOdontogramRootSurfaceComponent implements OnInit, OnChange
7474
}
7575

7676
getToothScale(tooth: OdontogramTooth): number {
77-
if (this.isMolar(tooth)) {
78-
return 1.12;
79-
}
80-
if (this.isPremolar(tooth)) {
81-
return 1;
82-
}
83-
return 0.9;
77+
void tooth;
78+
return 1;
8479
}
8580

8681
getCenterPolygonPoints(tooth: OdontogramTooth): string {

0 commit comments

Comments
 (0)