Skip to content

Commit

Permalink
Link styling and display revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate King authored and Nate King committed Jan 8, 2025
1 parent 7e4ff87 commit 4f90367
Show file tree
Hide file tree
Showing 22 changed files with 125 additions and 45 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.12.2 January 8, 2025
- Revising link styles across the sites.
- Added element wrappers to keep definitions links from wrapping end-of-line icons to next line on their own.

## 1.12.1 January 7, 2025
- Added invisible html entity as breakpoints for email address as labels when output in filtering tables for PQEAs and Contractors.
- Tweaked focus and hover style for links in filtered tables.
Expand Down
17 changes: 17 additions & 0 deletions blocks/vue-blocks/src/postFilterApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,23 @@ const checkDefinitions = () => {
if (!link.classList.contains('icon-definition')) {
link.classList.add('icon-definition');
link.setAttribute('aria-label', 'opens definition dialog for this concept');
const linkText = link.textContent;
if (linkText && linkText.trim().length > 0) {
const words = linkText.trim().split(' ');
const lastWord = words.pop();
const restOfText = words.join(' ');
// Create a span element for the last word
const span = document.createElement('span');
span.classList.add('last-word');
span.textContent = lastWord;
link.innerHTML = `${restOfText} `;
link.appendChild(span);
}
// Adding event listeners for both click and keypress events
addEventListeners(link);
Expand Down
2 changes: 1 addition & 1 deletion checklist.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Created at 2025-01-07 2:04 pm
Created at 2025-01-08 2:24 pm

* [yes] Updated version in composer.json
* [yes] Updated version in style.css or plugin file
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bcgov-plugin/bcgov-plugin-cleanbc",
"description": "Frontend plugin to augment Clean BC and Go Electric BC using Block Theme for BC Gov",
"version": "1.12.1",
"version": "1.12.2",
"type": "wordpress-plugin",
"license": "Apache-2.0",
"repositories": [
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/assets/public-365fe814.js

This file was deleted.

Loading

0 comments on commit 4f90367

Please sign in to comment.