RTBC++ π₯³
(Friends, please pay attention on the patch file naming. ππ» Following minimal convention of ISSUEID-COMMENTID.patch
makes navigating drupal.org issues and identifying the connected comment much easier until everything is hopefully moved to GitLab soon. π€π»)
This is a very good idea. And there's already similar issues filed to the official GitHub repo:
[Provide configurable consentModal.titleTag and consentNotice.titleTag #425]
But I guess, until this gets fixed upstream, we need to do it ourselves.
To maintain backwards compatibility we ideally also offer a new option in the simple_klaro.settings to configure the consentModal.titleTag and the consentNotice.titleTag.
But first of all we need to find a way to make it work, to get the heading markup-changing JavaScript attached at the right moment and the markup actually changed.
Later we need to get that option in.
Is MR44 another approach to solve the same problem?
With MR34 and running drush generate phpstorm-meta
to get a nice mapping file for PhpStorm autocompletion, I get the following error, as these plugins are still referenced in code:
Welcome to phpstorm-meta generator!
βββββββββββββββββββββββββββββββββββββIn ExtensionManager.php line 78:
Plugin ID 'commonmark-heading-permalink' was not found.
phpstorm-meta [-d|--working-dir [WORKING-DIR]] [-a|--answer [ANSWER]] [--dry-run] [--full-path] [--destination [DESTINATION]] [--replace]
Failed to run drush generate phpstorm-meta: exit status 1
I think we should definitely go for a jigsaw puzzle-shaped shaped logo. It is instantly unique and instantly memorableβno one forgets it.
And most important: It opens the door to endlessly creative marketing.
Think puzzle piece stickers, collectible swag, maybe even a puzzle plush toy and real mini puzzles as giveaways. Each piece can represent a product, value, or community memberβversatile and symbolic. Itβs playful, interactive, and inherently shareable.
This logo invites engagement, not just recognition. So if we want Experience Builder to hit big, we should go for puzzle shape.
Nice! Yes, this looks cleaner.
I can confirm, that the lastest commit, tested manually, is working perfectly.
Ah you can just add blocks into the new navbar, okay.
Yeah, we would need to find a ways this gets placed automatically.
@scott β What do you mean with this:
Actually could just leverage the Navigation module
Nice, this is a very good idea. Gonna test it now
norman.lol β created an issue.
First patch contains a fixed applied too broadly, on all entity edit links. Instead, let's get this parent view mode fix only for paragraphs.
norman.lol β created an issue.
Hm, maybe yeah. On the other hand: Shouldn't a rating element provided by Webform core be accessible OOTB?
norman.lol β created an issue.
norman.lol β created an issue.
norman.lol β changed the visibility of the branch aortega1441-3452243-accessible-klaro-patch-52096 to hidden.
norman.lol β changed the visibility of the branch 3452243-a11y to hidden.
Turned out that the only thing that was needed for the initial focus to be removed was to remove the tabindex="0"
from <div id="klaro-cookie-notice" tabindex="0">
added by the klaro lib. Now I could remove firstFormFocusableElement.focus();
, and even without it the first tab press immediately focused on the first focusable element and stayed fully loop-able after that.
But still took me almost a day to get there. π
On the way I refactored the code quite a bit:
- added
once
- replaced
document
withcontext
where possible - refactored the actual trap functionality into a separate function
trapFocus
with an option to pass different key press logic to it (depending if used on the main modal or the preference form)
norman.lol β created an issue.
norman.lol β changed the visibility of the branch 1.x to hidden.
norman.lol β changed the visibility of the branch 3452243-accessible-klaro to hidden.
It's not been removed, just moved. The title of the issue and commit message is misleading.
Instead of adding Drush to core we would built another Drush to add it to core. This is not DRY.
Eventually people then pick this approach up in their contrib modules and now have to provide 2 commands for the same thing, one for Drush, one for NotDRY.
Looking the other way instead of getting Drush closer to core, also doesn't sound fair to all the people who develop and maintain Drush. They do this for Drupal.
I agree and would also vote for bug, given that there's even a place in the condition plugin's code where you provide a dynamic summary to be picked up in this exact vertical tabs place.
If we make the title into a fixable task e.g. "Improve "The value you selected is not a valid choice" error message", then it's nothing about user module and instead becomes a feature request in the first place to give people a meaningful error message from core's AllowedValuesConstraintValidator.
Like:
- What is a valid choice?
- What is the current choice?
- Which field/element triggered this error?
Thank you @aortega1441 this looks very promising π€©
We just should check again on the coding standards in that JS file, the comments in particular, please see https://www.drupal.org/docs/develop/standards/javascript-coding-standard... β .
Non-JSDoc comments SHOULD use capitalized sentences with punctuation. Comments SHOULD be on a separate line, immediately before the code line or block they reference.
The error is NOT coming directly from Drupal but from a validator that is extending Symfony's ChoiceValidator
, the AllowedValuesConstraintValidator
. You need to look for this string The value you selected is not a valid choice
inside the project/vendor/ directory and not inside project/web/.
In the end after setting a few Xdebug breakpoint in the AllowedValuesConstraintValidator
to understand what's passed around here, I had to set a breakpoint inside Symfonfy's ChoiceValidator.php in the last elseif
to find out that the problem was an invalid timezone value for the user, I could then clean-up by exposing the timezone field via /admin/config/regional/settings
to let users chose their timezone and also have the problematic value editable.
Took me 4h. Cheers π»
Ah, you can simply pass context.location.origin
to the URL constructor, to make it also work for relative or even protocol-relative URLs like //example.com/foobar
, see https://developer.mozilla.org/en-US/docs/Web/API/URL/URL.
But there's another problem: data-href="javascript:alert()"
is recognised as a valid URL. And this is exactly what we want to avoid.
Maybe we could check first, if the string starts with a /
character and if yes, temporarily prefix it with https://www.example.com
to still be able to use this nice and clean URL method of the current MR. π€
Thank you for your contribution @chhavi π€ but @jan is right: We need to take both absolute and relative URLs into account.
norman.lol β created an issue.
norman.lol β created an issue.
Provided new MR with info.yml changes done as well. Also removed composer.json which had differing version constraints. composer.json file will get created automatically from drupal.org infra pipelines. You only need to have it, if you have additional PHP dependencies.
Let's get this merged and released. ππ»
norman.lol β made their first commit to this issueβs fork.
Let's get this merged and released ππ»
norman.lol β made their first commit to this issueβs fork.
Bump π
Saw the project listed in https://drupal.stackexchange.com/q/321793/15055
True, now the hook is in src/Hook/ContentTranslationHooks.php?ref_type=tags#L382-415 and the 11.x MR still has it, while the 10.x patch has the hook removed.
But all tests are green π€
Are the tests wrong? Or could the hook still stay?
The patch is completely unrelated to this issue.
@tim - Please help us, checking out the current MR, reviewing if it is working for you, reviewing if it fixes any accessbility issues for you.
Maybe you can even help us solving the problem of the initial focus.
Not sure how mirroring a third party JS library on drupal.org should be any good.
Running composer require drupal/better_exposed_filters
and pushing the updated composer.json and .lock file, my colleagues pull and upon running composer install
the get an error:
- Required package "leongersen/nouislider" is not present in the lock file.
This usually happens when composer files are incorrectly merged or the composer.json file is manually edited.
Read more about correctly resolving merge conflicts https://getcomposer.org/doc/articles/resolving-merge-conflicts.md
and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r
Composer [install -n] failed, composer command failed: exit status 4. stderr=
Re-running composer require drupal/better_exposed_filters
then updates the .lock file again with leongersen/nouislider
in it.
So we should either inform people about needing to run composer require drupal/better_exposed_filters
twice or we follow the approach of either providing a libraries.composer.json or add the library into better_exposed_filters
' composer.json like for example the Photoswipe contrib module does it: https://git.drupalcode.org/project/photoswipe/-/blob/5.x/composer.json?r...
I honestly don't understand why we would create a mirror of a third party library on drupal.org and try to pull it in like that.
This is working really well so far. ππ»
The only thing we would like to change is that we would like to prevent that there's a default focus upon opening the page.
Only after the first time pressing tab we would like the first element to be focused.
The current patch did not account for manually entered URLs in config.
We must cover both absolute library URLs and relative URLs with base path prefixed manually already.
Applied same changes as in π Library path wrong for subsites (4.x) Active .
The failing pipeline is unrelated to this issue and has already been addressed in π LazyForm too few arguments Needs review .
There's a config in the module to override this path already. The current patch unfortunately doesn't work if an absolute URL has been entered. And it also won't work if the base path has been manually prefixed already.
I think we need to additionally check two things first:
- 1. Is the URL relative and has the base path already been entered
- 2. Is it an external URL
In both cases the base path should not be added.
norman.lol β created an issue.
π
I guess that's why I got no credit now. Although I spent time reviewing and testing it. πΏ
norman.lol β created an issue.
norman.lol β created an issue.
norman.lol β created an issue.
Needs review and needs follow-up issue to place the currently omitted [OMITTED]
Mailchimp keys.
Both types of hero - frontpage and detailpage - are too different. And the frontpage is much different from the blog template as well. So I've put the frontpage hero with just raw markup.
We then only need the hero component for the detailpages.
leymannx β created an issue.
leymannx β created an issue.
Today @klausi and me met in Vienna to get this issue resolved ultimately.