Skip to content

Conversation

@jamiebenstead
Copy link
Contributor

@jamiebenstead jamiebenstead temporarily deployed to previews/1271/merge November 6, 2025 12:24 — with GitHub Actions Inactive
@jamiebenstead jamiebenstead temporarily deployed to previews/1271/merge November 6, 2025 12:26 — with GitHub Actions Inactive
@jamiebenstead jamiebenstead temporarily deployed to previews/1271/merge November 6, 2025 12:55 — with GitHub Actions Inactive
@jamiebenstead jamiebenstead temporarily deployed to previews/1271/merge November 6, 2025 12:58 — with GitHub Actions Inactive
@jamiebenstead jamiebenstead temporarily deployed to previews/1271/merge November 6, 2025 13:20 — with GitHub Actions Inactive
} = props;
const isMobile = useMediaQuery({ query: MOBILE_MEDIA_QUERY });

const buttonNodes = React.Children.toArray(buttons);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this go too if we're insisting it's an array in the proptypes?

Copy link
Contributor

@loiswells97 loiswells97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thanks for putting up with my prevaricating over the best approach 😅

@jamiebenstead jamiebenstead merged commit 8e13c34 into main Nov 6, 2025
8 checks passed
@jamiebenstead jamiebenstead deleted the Refactor-SidebarPanel-to-pass-buttons-as-elements branch November 6, 2025 14:53
@patch0 patch0 mentioned this pull request Nov 13, 2025
patch0 added a commit that referenced this pull request Nov 17, 2025
### Added

- Font-family variables that can be used to customise the sans-serif and
monospace fonts used in the editor (#1264)
- Material symbols font to web component preview page since the Design
System depends on this (#1261)
- Ability for plugins to add buttons to the SidebarPanel header (#1270,
#1271, #1274)
- Prevent access to the session from within the editor (#1275)

### Changed

- Changed the horizontal scrollbar to show without needing to scroll to
the bottom of the editor window (#1257)
- Updated Design System react to v2.6.2 (#1261)
- Changed SidebarPanel to accept an array of buttons (#1270)
- Changed SidebarPanel to use an array of buttons as elements (#1271)
- Changed default-width and min-width on SidebarPanel (#1273)

### Fixed

- Styling design system components used in the web component (#1263)
- Sidebar panel overflow for plugins (#1266, #1269)
- Extra border around code output in the instructions panel (#1253)
- Line numbering alignment in code blocks in the instructions panel
(#1259)
- Extra lines added at the start of some code blocks (#1267)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants