Skip to content

Commit eef2605

Browse files
dcoaluisfelipec95
authored andcommitted
feat: add design tokens support (openedx#1758)
1 parent d126983 commit eef2605

2 files changed

Lines changed: 13 additions & 15 deletions

File tree

src/library-authoring/components/BaseCard.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,21 @@
88
}
99

1010
&.selected:not(:focus) {
11-
outline: 2px var(--pgn-color-gray-700) solid;
11+
border: 2px var(--pgn-color-gray-700) solid;
12+
13+
.library-item-header {
14+
border-top-left-radius: calc(.375rem - 2px);
15+
border-top-right-radius: calc(.375rem - 2px);
16+
}
1217
}
1318

1419
&.selected:focus {
15-
outline: 3px var(--pgn-color-gray-700) solid;
20+
border: 3px var(--pgn-color-gray-700) solid;
21+
22+
.library-item-header {
23+
border-top-left-radius: calc(.375rem - 3px);
24+
border-top-right-radius: calc(.375rem - 3px);
25+
}
1626
}
1727

1828
&:not(.selected):focus {

src/library-authoring/units/index.scss

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,7 @@
3131
&:focus {
3232
// this is required for clicks to be passed to underlying iframe component
3333
pointer-events: none;
34-
}
35-
36-
&.selected:not(:focus) {
37-
outline: 2px var(--pgn-color-gray-700) solid;
38-
}
39-
40-
&.selected:focus {
41-
outline: 3px var(--pgn-color-gray-700) solid;
42-
}
43-
44-
&:not(.selected):focus {
45-
outline: 1px var(--pgn-color-gray-200) solid;
46-
outline-offset: 2px;
34+
outline: solid 1px var(--pgn-color-dark-500);
4735
}
4836

4937
&::before {

0 commit comments

Comments
 (0)