Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## unreleased

- New `navbar_toggle_label` property on the `shell` and `close_label` property on the `alert` component, to translate the accessible names of the menu toggle button and of the alert close button. ([#1632](https://github.com/sqlpage/SQLPage/issues/1632))
- Updated Rust and browser dependencies, including SQLite, ApexCharts, and Tabler.
- SQLite query results preserve the full 64-bit range of `INTEGER` values. ([#1636](https://github.com/sqlpage/SQLPage/issues/1636))
- Big number title links have a larger target for touch and pointer users.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
('search_value', 'This value will be placed in the search field when "search_target" is set. Using the "$search" query parameter value will mirror the value that the user has searched for.', 'TEXT', TRUE, TRUE),
('search_placeholder', 'Customizes the placeholder text shown in the search input field. Replaces the default "Search" with text that better describes what users should search for. It is also used as the accessible name of the search field, which screen readers announce.', 'TEXT', TRUE, TRUE),
('search_button', 'Customizes the text displayed on the search button. Replaces the default "Search" label with custom text that may better match your applications terminology or language.', 'TEXT', TRUE, TRUE),
('navbar_toggle_label', 'Customizes the accessible name of the button that opens and closes the navigation menu on small screens, which screen readers announce. Replaces the default "Toggle navigation".', 'TEXT', TRUE, TRUE),
('norobot', 'Forbids robots to save this page in their database and follow the links on this page. This will prevent this page to appear in Google search results for any query, for instance.', 'BOOLEAN', TRUE, TRUE),
('font', 'Specifies the font to be used for displaying text, which can be a valid font name from fonts.google.com or the path to a local WOFF2 font file starting with a slash (e.g., "/fonts/MyLocalFont.woff2").', 'TEXT', TRUE, TRUE),
('font_size', 'Font size on the page, in pixels. Set to 18 by default.', 'INTEGER', TRUE, TRUE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ VALUES (
TRUE,
TRUE
),
(
'alert',
'close_label',
'Accessible name of the close button of a dismissible alert, which screen readers announce. The default is "Close".',
'TEXT',
TRUE,
TRUE
),
(
'alert',
'important',
Expand Down
4 changes: 2 additions & 2 deletions sqlpage/templates/alert.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
</div>

{{~#if dismissible~}}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="{{default close_label 'Close'}}"></button>
{{~/if~}}
</div>
</div>
4 changes: 2 additions & 2 deletions sqlpage/templates/shell.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
{{#if sidebar}}
<aside class="navbar navbar-vertical navbar-expand-lg" {{#if sidebar_theme}}data-bs-theme="{{sidebar_theme}}" {{/if}}>
<div class="container-fluid">
<button class="navbar-toggler collapsed" type="button" data-bs-target="#sidebar-menu" aria-controls="sidebar-menu" data-bs-toggle="collapse" aria-expanded="false" aria-label="Toggle navigation">
<button class="navbar-toggler collapsed" type="button" data-bs-target="#sidebar-menu" aria-controls="sidebar-menu" data-bs-toggle="collapse" aria-expanded="false" aria-label="{{default navbar_toggle_label 'Toggle navigation'}}">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand d-inline ps-2 text-truncate" href="{{#if link}}{{link}}{{else}}/{{/if}}">
Expand Down Expand Up @@ -203,7 +203,7 @@
<a class="text-decoration-none text-body" href="{{#if link}}{{link}}{{else}}/{{/if}}">{{default navbar_title title}}</a>
</span>
{{#if (or menu_item search_target)}}
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="{{default navbar_toggle_label 'Toggle navigation'}}">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse flex-grow-0" id="navbar-menu">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select 'alert' as component, 'Saved' as title, 1 as dismissible, 'It works !' as close_label;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select 'shell' as component, 'Demo' as title, 'about' as menu_item, 'It works !' as navbar_toggle_label;
Loading