Skip to content

Commit 727dba0

Browse files
authored
Merge pull request #2909 from basecamp/update-lexxy
Upgrade lexxy to 0.9.14.beta
2 parents 53131b6 + 9cede65 commit 727dba0

4 files changed

Lines changed: 23 additions & 16 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ gem "geared_pagination", "~> 1.2"
2727
gem "rqrcode"
2828
gem "rouge"
2929
gem "jbuilder"
30-
gem "lexxy", "0.9.5.beta"
30+
gem "lexxy", "0.9.14.beta"
3131
gem "image_processing", "~> 1.14"
3232
gem "platform_agent"
3333
gem "aws-sdk-s3", require: false

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ GEM
234234
activesupport (>= 7.0.0)
235235
jmespath (1.6.2)
236236
json (2.19.3)
237-
jwt (3.1.2)
237+
jwt (3.2.0)
238238
base64
239239
kamal (2.11.0)
240240
activesupport (>= 7.0)
@@ -254,7 +254,7 @@ GEM
254254
logger (~> 1.6)
255255
letter_opener (1.10.0)
256256
launchy (>= 2.2, < 4)
257-
lexxy (0.9.5.beta)
257+
lexxy (0.9.14.beta)
258258
rails (>= 8.0.2)
259259
lint_roller (1.1.0)
260260
logger (1.7.0)
@@ -518,7 +518,7 @@ DEPENDENCIES
518518
jbuilder
519519
kamal
520520
letter_opener
521-
lexxy (= 0.9.5.beta)
521+
lexxy (= 0.9.14.beta)
522522
mission_control-jobs
523523
mittens
524524
mocha

Gemfile.saas.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ GEM
346346
activesupport (>= 7.0.0)
347347
jmespath (1.6.2)
348348
json (2.19.3)
349-
jwt (3.1.2)
349+
jwt (3.2.0)
350350
base64
351351
kamal (2.11.0)
352352
activesupport (>= 7.0)
@@ -366,7 +366,7 @@ GEM
366366
logger (~> 1.6)
367367
letter_opener (1.10.0)
368368
launchy (>= 2.2, < 4)
369-
lexxy (0.9.5.beta)
369+
lexxy (0.9.14.beta)
370370
rails (>= 8.0.2)
371371
lint_roller (1.1.0)
372372
logger (1.7.0)
@@ -723,7 +723,7 @@ DEPENDENCIES
723723
jbuilder
724724
kamal
725725
letter_opener
726-
lexxy (= 0.9.5.beta)
726+
lexxy (= 0.9.14.beta)
727727
mission_control-jobs
728728
mittens
729729
mocha

app/assets/stylesheets/lexxy.css

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@
6565
}
6666
}
6767

68-
.lexxy-editor__toolbar-button {
68+
/* Exclude the link dropdown's action buttons — they keep the gem's accent/gray background. */
69+
.lexxy-editor__toolbar-button:not(.lexxy-editor__toolbar-dropdown-actions *) {
6970
background: transparent;
7071

7172
&[aria-pressed="true"],
72-
[open] > & {
73+
&[aria-expanded="true"] {
7374
background-color: oklch(var(--lch-blue-medium) / 20%);
7475
}
7576

@@ -80,17 +81,19 @@
8081
}
8182
}
8283

83-
.lexxy-editor__toolbar-dropdown--chevron {
84-
summary:after {
84+
.lexxy-editor__toolbar-button--chevron {
85+
&:after {
8586
block-size: 0.3rem;
8687
inline-size: 0.3rem;
8788
}
8889
}
8990

9091
lexxy-link-dropdown {
91-
--lexxy-toolbar-spacing: 1.5ch;
92+
[data-dropdown-panel] {
93+
--lexxy-toolbar-spacing: 1.5ch;
94+
}
9295

93-
.lexxy-editor__toolbar-button {
96+
.lexxy-editor__toolbar-dropdown-actions .lexxy-editor__toolbar-button {
9497
border-radius: 99rem;
9598

9699
@media(any-hover: hover) {
@@ -100,12 +103,16 @@
100103
}
101104
}
102105

103-
&[type="submit"],
104-
&[type="submit"]:hover {
106+
&[value="link"] {
105107
background-color: var(--color-link);
108+
color: var(--color-ink-inverted);
109+
110+
&:hover {
111+
background-color: var(--color-link);
112+
}
106113
}
107114

108-
&[type="button"] {
115+
&[value="unlink"] {
109116
border: 1px solid var(--color-ink-light);
110117
}
111118
}

0 commit comments

Comments
 (0)