@khanacademy/perseus 21.2.0 → 21.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -4284,6 +4284,7 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4284
4284
  --movable-point-ring-radius: calc(2px + var(--movable-point-center-radius));
4285
4285
  --movable-point-halo-radius: calc(3px + var(--movable-point-ring-radius));
4286
4286
  --movable-point-hover-expansion: 2px;
4287
+ --movable-point-focus-ring-offset: 2px;
4287
4288
 
4288
4289
  --movable-line-stroke-color: var(--mafs-blue);
4289
4290
  --movable-line-stroke-weight: 2px;
@@ -4305,7 +4306,13 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4305
4306
  fill: transparent;
4306
4307
  }
4307
4308
 
4308
- .MafsView :is(.movable-point-center, .movable-point-ring, .movable-point-halo) {
4309
+ .MafsView
4310
+ :is(
4311
+ .movable-point-center,
4312
+ .movable-point-ring,
4313
+ .movable-point-halo,
4314
+ .movable-point-focus-outline
4315
+ ) {
4309
4316
  transition: r 0.15s ease-out;
4310
4317
  }
4311
4318
 
@@ -4344,7 +4351,24 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4344
4351
  );
4345
4352
  }
4346
4353
 
4347
- .MafsView .movable-point:focus-visible .movable-point-halo {
4348
- outline: 2px solid blue;
4349
- border-radius: 99px;
4354
+ .MafsView .movable-point .movable-point-focus-outline {
4355
+ visibility: hidden;
4356
+ r: calc(
4357
+ var(--movable-point-halo-radius) +
4358
+ var(--movable-point-focus-ring-offset)
4359
+ );
4360
+ stroke-width: 2px;
4361
+ fill: none;
4362
+ stroke: var(--mafs-blue);
4363
+ }
4364
+
4365
+ .MafsView .movable-point:hover .movable-point-focus-outline {
4366
+ r: calc(
4367
+ var(--movable-point-hover-expansion) + var(--movable-point-halo-radius) +
4368
+ var(--movable-point-focus-ring-offset)
4369
+ );
4370
+ }
4371
+
4372
+ .MafsView .movable-point:focus-visible .movable-point-focus-outline {
4373
+ visibility: visible;
4350
4374
  }
package/dist/index.js CHANGED
@@ -25037,6 +25037,7 @@ class Explanation extends React__namespace.Component {
25037
25037
  // While the button is not normally included in a block of text, it needs to be able to accommodate such a case.
25038
25038
  const buttonStyleOverrides = {
25039
25039
  height: "auto",
25040
+ lineHeight: "inherit",
25040
25041
  marginLeft: "-2px",
25041
25042
  // transfer space on the left side to the padding
25042
25043
  marginRight: "2px",
@@ -25046,7 +25047,8 @@ class Explanation extends React__namespace.Component {
25046
25047
 
25047
25048
  const labelStyle = {
25048
25049
  fontSize: "18px",
25049
- lineHeight: "20px",
25050
+ lineHeight: "inherit",
25051
+ "text-align": "left",
25050
25052
  // The following property adjusts the large space between the button text and the caret icon.
25051
25053
  // Since we are unable to adjust the styling of the icon (where the extra space exists),
25052
25054
  // we are adjusting it on the text label by using a negative margin.
@@ -28608,6 +28610,10 @@ const StyledMovablePoint = props => {
28608
28610
  className: "movable-point-ring",
28609
28611
  cx: x,
28610
28612
  cy: y
28613
+ }), /*#__PURE__*/React__namespace.createElement("circle", {
28614
+ className: "movable-point-focus-outline",
28615
+ cx: x,
28616
+ cy: y
28611
28617
  }), /*#__PURE__*/React__namespace.createElement("circle", {
28612
28618
  className: "movable-point-center",
28613
28619
  cx: x,
@@ -42489,7 +42495,7 @@ const init = function (options) {
42489
42495
 
42490
42496
  // This file is processed by a Rollup plugin (replace) to inject the production
42491
42497
  const libName = "@khanacademy/perseus";
42492
- const libVersion = "21.2.0";
42498
+ const libVersion = "21.2.2";
42493
42499
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
42494
42500
 
42495
42501
  const apiVersion = {