Tennessee
Account created on 23 August 2019, over 5 years ago
#

Merge Requests

More

Recent comments

🇺🇸United States bernardm28 Tennessee
  .views-exposed-form .views-exposed-form__item:has(.form-item__description) + .form-actions {
    margin-block-end: 1.75rem;
  }

Something like that would fix it too but idk why we would override claro there.

🇺🇸United States bernardm28 Tennessee

We could have a has css class that aligns that button based on the previus

🇺🇸United States bernardm28 Tennessee

Pretty cool how USWDS is stacking the tables with just CSS. But kind of unfortunate that means somethings they could not solve, like the table headings.

🇺🇸United States bernardm28 Tennessee

Here is what the before and after look like.

Before

After

The code above does make a few assumptions but for basic scenarios it gets you there and might be easier to modify for more advanced used cases.

🇺🇸United States bernardm28 Tennessee

I'm not sure, I would imagine it would work as usual without it. However, bigpipe is considered best practice and significantly improved performance metrics.
https://docs.acquia.com/acquia-cloud-platform/performance/bigpipe
So i would imagine for those that don't use it they might run into this issue once they do.

🇺🇸United States bernardm28 Tennessee

Here is how we did it and how it can be done with the new way described by catch #63. 🐛 10.3 upgrade now missing status-message theme suggestions Postponed
https://www.drupal.org/project/uswds_base/issues/3465493 📌 Drupal 10.3 changes how to theme status messages. Active
My example is for a USWDS theme but you can replace those classes with those you had on status-messages.html.twig

🇺🇸United States bernardm28 Tennessee

I like how this issue and its PR simplify the current workflow.
My only concern is this removes the ability to have multiple tabs open, which becomes useful when looking into multiple competing modules.
However, if one can queue the modules in a shopping cart of sorts which I heard may be in the future then that would not matter much I suppose.

🇺🇸United States bernardm28 Tennessee

bernardm28 created an issue.

🇺🇸United States bernardm28 Tennessee

Seems like this issue MR accomplishes the main goal of this issue.
It could always be improved later on a follow-up.

🇺🇸United States bernardm28 Tennessee

So it looks like the carousel does not work because we renamed
project.field_project_images to project.project_images but the fixture only finds one image with that name.
FYI updating a fixture within drupalPod is very slow.

🇺🇸United States bernardm28 Tennessee

I'm considering using https://biggerpicture.henrygd.me instead of making our own gallery since that supports multiple types.
Thoughts? I will add it to the MR tomorrow.

🇺🇸United States bernardm28 Tennessee

Ooooh, that's a great suggestion and a pretty cool module.
Though we already do something similar, in a slightly different way.

My issue is mostly around providing a way where we don't have to do img[alt=""], because a given image might need the warning in the future. Some components change their requirements as they serve a slightly different purpose.
I thought about a setting any given editor could toggle through a keyword or similar. Similar to the module above but with an Editoria11y exposed setting.
Editors can choose if the image in that location is decorative but if at a later point, it's not. They could remove the check or keyword and provide a way for Editoria11y to parse it again. That would be ideal.

I was using 'img[src*=".svg"], img[src*=".png"]' to ignore the extension, but I'm pretty sure editors will change their mind and have a png or .svg at some point that need the alt text warning even though it might not need it today.

That said, it's ok if you feel that's outside the current scope.

I will run through a few prototypes and see if I find something that might fit.

🇺🇸United States bernardm28 Tennessee

This probably comes with it's own challenges but will allow an override for those images an ambitious site builder deems decorative.

🇺🇸United States bernardm28 Tennessee

This issue worked as expected on DrupalPod on Chrome.
We should open an issue up if it does not work in Edge and Safari but because this is an enhancement. I think supporting edge and safari would be could be a follow-up.
The feedback and accessibility concerns are valid and will be super useful as we make later enhancements but for now, I think this achieved the targeted outcome.

🇺🇸United States bernardm28 Tennessee

After looking into this issue, It seems to have accomplished the requirements. I tested it with drupalPod.
Hence, I'm setting it to RTBC.
I agree with @rkoller on most suggested changes but we are likely to address those in a follow-up ticket. I can open that.
Additionally, we will likely have to roll out the Drupal design systems everywhere once we are merged into core. So it might be postponed a little but it's coming. #331817 is not ready yet, but it is a good idea to reference it.

🇺🇸United States bernardm28 Tennessee

bernardm28 made their first commit to this issue’s fork.

🇺🇸United States bernardm28 Tennessee


I was thinking on this items.
There is a button for add/install button but the items underneath i did not see them on the svelte file.
Those include

  • Message if not compatible
  • # Installs
  • Stable
  • Maintain
  • Link to Drupal.org
🇺🇸United States bernardm28 Tennessee

Since drupal already has a sidebar, I might copy some of its styles.

Some of the items on the right panel below do not yet exist. I imagine I should leave a placeholder.

🇺🇸United States bernardm28 Tennessee

bernardm28 changed the visibility of the branch 3322594-project-detail to hidden.

🇺🇸United States bernardm28 Tennessee

bernardm28 made their first commit to this issue’s fork.

🇺🇸United States bernardm28 Tennessee

After chatting with Mike Herchel about this. He recommended we get rid of the x altogether and use the standard HTML web search element instead of input.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search

🇺🇸United States bernardm28 Tennessee

I wonder if tabindex="-1" would be good enough or would there be a better way.

Note: tabindex="-1" may be useful for elements that should not be navigated directly using the Tab key, but need to have keyboard focus set to them. Examples include an off-screen modal window that should be focused when it comes into view, or a form submission error message that should be immediately focused when an errant form is submitted.

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabi...

🇺🇸United States bernardm28 Tennessee

bernardm28 changed the visibility of the branch 1.0.x to hidden.

🇺🇸United States bernardm28 Tennessee

The test failure with the phpunit functional test is weird on this one.
Not sure that error is related to the changes here.

🇺🇸United States bernardm28 Tennessee

No worries, take your time. If anything, I might contribute back this one back after DrupalCon.
I worked around it by targeting the css classes. Which worked great.

🇺🇸United States bernardm28 Tennessee

Patch https://www.drupal.org/files/issues/2023-09-28/2902164-149.patch and 4.0.0-alpha5 seemed to work for the most part except inside group fields detail tabs, the parent and children would not hide even when the option was checked. However, I was able to hide regular paragraphs fields based another text list or drop down paragraph field.

That said, the current MR does not seem to work with paragraphs. https://git.drupalcode.org/project/conditional_fields/-/merge_requests/4...
My assumption is that https://www.drupal.org/project/conditional_fields/issues/2856720 Support for Inline Entity Form Fixed , the work related to supporting inline entities stepped on this.
I tried to apply the changes from #149 to the current MR on DrupalPod and most of the code overlap and highlights are related to the inline entities MR changes Support for Inline Entity Form Fixed . It might be tricky to support both and then layout builder not step on each other as the code in here seems to be growing in complexity and has started to lose some of it separation of concerns. Maybe a good problem to have since that mean more community will get behind it but a tricky one.

🇺🇸United States bernardm28 Tennessee


This should be ready to be reviewed.
I tested it with DrupalPod 10.1.x and the standard theme.

🇺🇸United States bernardm28 Tennessee

bernardm28 made their first commit to this issue’s fork.

🇺🇸United States bernardm28 Tennessee

Looks good, thanks for checking and fixing those.

🇺🇸United States bernardm28 Tennessee

We are also experiencing this issue. While testing the current MR, 2902164-controlled-by-fields I noticed it also reorders the field's in the edit form when said field is inside of a details tab.
My paragraph had
field
field number 2
details tab
details tab number 2
embeded paragraph.

After applying the patch and trying to hide details tab number 2 with field number 2. The layout of the form switch to this.

field
field number 2
details tab
embeded paragraph.
details tab number 2

It did not hide the details tab number 2 but it did move it around.

🇺🇸United States bernardm28 Tennessee

Tested this with DrupalPod 10.1.x, stable theme. Seems to work as expected.
Searching and hitting enter multiple times does not remove any of the search filters.
I also tested this by removing one of the default test filters. Removing the maintained filter and searching repeatedly works as expected.

🇺🇸United States bernardm28 Tennessee

Thanks for the quick turnaround
The fix seems to work and this issue to be fixed by it.
We are looking to migrate away from extlink into linkpurpose so I might have some follow-up tickets.

🇺🇸United States bernardm28 Tennessee

I created a new DrupalPod instance with Drupal 10.1 and the standard profile.
After adding text to the input field I was able to verify that #9 is not an issue anymore. As overlapping text still allows one to click the X and it works as expected by clearing the search results.

The test seems to work as expected checking whether there are results before searching for a string that has no results and comparing their outcome.

🇺🇸United States bernardm28 Tennessee

What if Instead of having it's own column it displays as an html subscript

🇺🇸United States bernardm28 Tennessee

It's an interesting idea and would save some time as one starts theming an entity.
Does it need to be there all the time? Maybe not, but it would be great to have it as a development option or have the ability to unhide it from somewhere on that table. Kind of hidden in plain site per se.

🇺🇸United States bernardm28 Tennessee

Also, I just noticed that clicking the original format as seen in the image below fixes it.

However, that setting does not get saved so upon opening the node the layout changes and it pics a different resolution.
So the image ckeditor plugin might be the buggy party here.

🇺🇸United States bernardm28 Tennessee

Same page without the issue.

removing style="height:1512px;width:2824px;" from <figure class="image ck-widget image_resized ck-widget_with-resizer ck-widget_selected" style="height:1512px;width:2824px;" contenteditable="false"

🇺🇸United States bernardm28 Tennessee

Seems like the issue comes from

without the issue

<figure class="image ck-widget image_resized ck-widget_with-resizer ck-widget_selected" style="height:1512px;width:2824px;" contenteditable="false"

removing style="height:1512px;width:2824px;" fixes the issue.

🇺🇸United States bernardm28 Tennessee

I can confirm this is an issue.
https://ddev.readthedocs.io/en/latest/users/quickstart/#__tabbed_4_2
I used the ddev quick start and then created a new basic page on Olivero's standard profile.

🇺🇸United States bernardm28 Tennessee

Seems to work as expected.

🇺🇸United States bernardm28 Tennessee

The image above is an example of what I would expect if I set the minimum and maximum values and go back into the config form. I would expect those values to load from the save config and allow me to change them again. Unfortunately, the form values will be empty no matter what.

The exposed filter worked as expected but the config form values for min and max was empty.

I modified Number.php to match what is used in NumericItemBase.php.

It should be working as expected now.

🇺🇸United States bernardm28 Tennessee

I tested this using drupalpod 10.1.x with demo_umami.

It looks to me like the min-max values are being saved but the plugin is not reading values that are already stored in config.
Even after you enter min 3 and max 30 and verify it works the form will load with empty values.

I used the /en/recipes view with the exposed filter of (field_cooking_time)

The up arrow seems to work well. I was able to increase the values with it and the min and max work as expected on the expose form but the plugin did not seem to read previously saved values.

Because it does not load the previously saved min max values on the config form it probably needs to go back to needs work.

🇺🇸United States bernardm28 Tennessee

With the help of the DrupalPod Chrome extension. I spun up a new Drupal site with Umami on it.
I did the following to test the module.

  • First test
  • Open the /recipes view in umami.
  • Switch from the basic filter to better-exposed filters.
  • Add Content: Difficulty as an exposed filter
  • Save the view and check that /recipes load as expected. .
  • Second test
  • Open the /recipes view in umami.
  • All of the steps from the first test.
  • Change the reset button label text to reset test and check the always show reset button
  • Save the view and check that /recipes load as expected. .
  • Third test
  • Open the /recipes view in umami.
  • All of the steps from the first two tests.
  • Change the reset button label text to reset test and check the always show reset button
  • Change the submit button text Apply today and check the Input required field
  • Swap the text desired to This is a test.
  • Save the view and check that /recipes load as expected. .
  • Fourth test
  • Open the /recipes view in umami.
  • All of the steps from the first 3 tests.
  • Enable auto-submit with 100 ms with Hide submit button checked
  • Save the view and check that /recipes load as expected.
🇺🇸United States bernardm28 Tennessee

Seems to be working as expected.

🇺🇸United States bernardm28 Tennessee

bernardm28 made their first commit to this issue’s fork.

🇺🇸United States bernardm28 Tennessee

bernardm28 made their first commit to this issue’s fork.

🇺🇸United States bernardm28 Tennessee

Here is an image of how it looks after the rebase.
The grid does not look the same but that is likely just because this rebase does not include the new compile CSS assets.

🇺🇸United States bernardm28 Tennessee

bernardm28 made their first commit to this issue’s fork.

🇺🇸United States bernardm28 Tennessee

Looks good and works as expeted.

🇺🇸United States bernardm28 Tennessee

I spent some time looking at it today, I did not notice any visual regression.
Also, I added the FLDC2024 tag as I started working on this for Florida drupal camp contribution day.

🇺🇸United States bernardm28 Tennessee

bernardm28 changed the visibility of the branch 3365435-update-markup-classnames-rebased-test to hidden.

🇺🇸United States bernardm28 Tennessee

bernardm28 changed the visibility of the branch 3365435-update-markup-classnames to hidden.

🇺🇸United States bernardm28 Tennessee

Thanks for hosting and insights.

Production build 0.71.5 2024