Skip to content

Commit 4f7f284

Browse files
committed
Remove Checkbox layout workaround
Update @hypothesis/frontend-shared and remove a layout workaround which is no longer needed due to hypothesis/frontend-shared#2068.
1 parent a91d62c commit 4f7f284

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

h/static/scripts/components/Checkbox.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export default function Checkbox({
3232
{...checkboxProps}
3333
aria-describedby={description ? descriptionId : undefined}
3434
>
35-
{/* Unstyled span needed to put children in a single flex item. */}
36-
<span>{children}</span>
35+
{children}
3736
</BaseCheckbox>
3837
{description && (
3938
<div

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@babel/preset-typescript": "^7.27.0",
2020
"@hypothesis/annotation-ui": "^0.8.0",
2121
"@hypothesis/frontend-build": "^4.0.0",
22-
"@hypothesis/frontend-shared": "^9.9.1",
22+
"@hypothesis/frontend-shared": "^9.9.2",
2323
"@rollup/plugin-babel": "^6.0.4",
2424
"@rollup/plugin-commonjs": "^28.0.3",
2525
"@rollup/plugin-node-resolve": "^16.0.1",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,15 +2009,15 @@ __metadata:
20092009
languageName: node
20102010
linkType: hard
20112011

2012-
"@hypothesis/frontend-shared@npm:^9.9.1":
2013-
version: 9.9.1
2014-
resolution: "@hypothesis/frontend-shared@npm:9.9.1"
2012+
"@hypothesis/frontend-shared@npm:^9.9.2":
2013+
version: 9.9.2
2014+
resolution: "@hypothesis/frontend-shared@npm:9.9.2"
20152015
dependencies:
20162016
highlight.js: ^11.6.0
20172017
wouter-preact: ^3.0.0
20182018
peerDependencies:
20192019
preact: ^10.25.1
2020-
checksum: 3141869152eedf72d9343c2e58b3aef3507f38a58f9f29762df50102c89e844baf429ee187bfc39eae32079363104361e1f331caf0c9f4582b538c2d60860866
2020+
checksum: 7d1d0c0778ec8e83e11847e1806a9e9a732737c87ceb216140a206f663aab09dc8935263f245fdcc5bd65cf6b70841e6ccf142a3f730f170f426b5b963f64642
20212021
languageName: node
20222022
linkType: hard
20232023

@@ -6948,7 +6948,7 @@ __metadata:
69486948
"@babel/preset-typescript": ^7.27.0
69496949
"@hypothesis/annotation-ui": ^0.8.0
69506950
"@hypothesis/frontend-build": ^4.0.0
6951-
"@hypothesis/frontend-shared": ^9.9.1
6951+
"@hypothesis/frontend-shared": ^9.9.2
69526952
"@hypothesis/frontend-testing": ^1.7.1
69536953
"@rollup/plugin-babel": ^6.0.4
69546954
"@rollup/plugin-commonjs": ^28.0.3

0 commit comments

Comments
 (0)