Skip to content

Commit d6f0554

Browse files
committed
Various fixes for ui3 menu
1 parent 5e80bd6 commit d6f0554

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

src/pg/inputSelect/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The `pg-input-select` component creates an select drop down.
44

55
```typescript
66
import '@pictogrammers/components/pgInputSelect';
7-
import { PgInputSelect } '@mdi/components/pgInputSelect';
7+
import { PgInputSelect } '@pictogrammers/components/pgInputSelect';
88
```
99
1010
```html

src/pg/inputUserSelect/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The `pg-input-user-select` component creates an select drop down.
44

55
```typescript
66
import '@pictogrammers/components/pgInputUserSelect';
7-
import { PgInputUserSelect } '@mdi/components/pgInputUserSelect';
7+
import { PgInputUserSelect } '@pictogrammers/components/pgInputUserSelect';
88
```
99
1010
```html

src/pg/menuItem/menuItem.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
font-family: var(--pg-font-family);
1010
text-align: var(--pg-menu-item-text-align, left);
1111
background: var(--pg-menu-item-background, transparent);
12-
padding: var(--pg-menu-padding, 0.25rem 0.5rem 0.25rem 1.5rem);
12+
padding: var(--pg-menu-item-padding, 0.25rem 0.5rem 0.25rem 1.5rem);
1313
border-color: transparent;
1414
border-width: 0;
1515
border-style: solid;
@@ -46,7 +46,7 @@
4646
}
4747

4848
[part=label].checked:disabled::before {
49-
content: var(--pg-menu-item-hover-check, url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z' fill='rgb(69, 60, 79, 0.5)' /></svg>"));
49+
content: var(--pg-menu-item-disabled-check, url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z' fill='rgb(69, 60, 79, 0.5)' /></svg>"));
5050
}
5151

5252
[part=label]:focus {
@@ -63,4 +63,8 @@
6363
left: -1px;
6464
border-radius: 0.25rem;
6565
box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.5));
66+
}
67+
68+
[part=label]:focus:not(:hover)::after {
69+
background: var(--pg-focus-background-color, rgb(79, 143, 249, 0.1));
6670
}

src/theme-ui3.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
--pg-button-hover-color: #FFFFFF;
1616
--pg-button-hover-color: #FFFFFF;
1717
/* Menu */
18+
--pg-menu-background-color: #1E1E1E;
1819
--pg-menu-padding: 0.25rem;
1920
--pg-menu-border-width: 0;
2021
--pg-menu-border-color: transparent;
@@ -24,6 +25,7 @@
2425
--pg-menu-item-selected-background: #248BE5;
2526
--pg-menu-item-disabled-color: #BBBBBB;
2627
--pg-menu-item-check: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.4999,10.2501L 10.5,17.25L 6.49999,13.25L 7.9142,11.8358L 10.5,14.4216L 16.0857,8.83584L 17.4999,10.2501 Z' fill='white' /></svg>");
27-
--pg-menu-item-hover-check: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.4999,10.2501L 10.5,17.25L 6.49999,13.25L 7.9142,11.8358L 10.5,14.4216L 16.0857,8.83584L 17.4999,10.2501 Z' fill='rgb(187, 187, 187)' /></svg>");
28+
--pg-menu-item-hover-check: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.4999,10.2501L 10.5,17.25L 6.49999,13.25L 7.9142,11.8358L 10.5,14.4216L 16.0857,8.83584L 17.4999,10.2501 Z' fill='white' /></svg>");
29+
--pg-menu-item-disabled-check: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.4999,10.2501L 10.5,17.25L 6.49999,13.25L 7.9142,11.8358L 10.5,14.4216L 16.0857,8.83584L 17.4999,10.2501 Z' fill='rgb(187, 187, 187)' /></svg>");
2830
--pg-menu-item-active-background: #2B9CFF;
2931
}

0 commit comments

Comments
 (0)