diff --git a/CHANGELOG.md b/CHANGELOG.md index 15c219610..adc94d46e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/examples/official-site/sqlpage/migrations/01_documentation.sql b/examples/official-site/sqlpage/migrations/01_documentation.sql index 98b72ab0e..60fc50863 100644 --- a/examples/official-site/sqlpage/migrations/01_documentation.sql +++ b/examples/official-site/sqlpage/migrations/01_documentation.sql @@ -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), diff --git a/examples/official-site/sqlpage/migrations/03_alert_component.sql b/examples/official-site/sqlpage/migrations/03_alert_component.sql index 92e672c29..afa50dbf4 100644 --- a/examples/official-site/sqlpage/migrations/03_alert_component.sql +++ b/examples/official-site/sqlpage/migrations/03_alert_component.sql @@ -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', diff --git a/sqlpage/templates/alert.handlebars b/sqlpage/templates/alert.handlebars index 07f2edcbc..e8a6fcdbd 100644 --- a/sqlpage/templates/alert.handlebars +++ b/sqlpage/templates/alert.handlebars @@ -36,6 +36,6 @@ {{~#if dismissible~}} - + {{~/if~}} - \ No newline at end of file + diff --git a/sqlpage/templates/shell.handlebars b/sqlpage/templates/shell.handlebars index 8fa658892..deb86cefd 100644 --- a/sqlpage/templates/shell.handlebars +++ b/sqlpage/templates/shell.handlebars @@ -171,7 +171,7 @@ {{#if sidebar}}