New York
Account created on 28 December 2008, almost 16 years ago
  • Sr Front End Developer at Lullabot 
#

Merge Requests

More

Recent comments

🇺🇸United States bronzehedwick New York

Sounds good, thanks @penyaskito!

🇺🇸United States bronzehedwick New York

Tested for regressions locally, and everything is looking good. Thanks @javi-er!

🇺🇸United States bronzehedwick New York

Gotcha, thanks @javi-er! I re-tested following your steps, and things are working as expected! I had to clear cache, but I think that's normal.

🇺🇸United States bronzehedwick New York

Re-tested and it's working great. Thanks @javi-er!

🇺🇸United States bronzehedwick New York

Thanks @javi-er!

I tested this functionally and am still seeing the issue.

My Steps

  1. Check out this branch
  2. Copy the module into a fresh Drupal install, inside themes/contrib
  3. Enable the module: ddev drush en -y ckeditor_responsive_table
  4. Add the "Responsive Table" and "Table" buttons to the Basic text filter
  5. Create a basic page
  6. Insert a responsive table
  7. Insert a regular table
  8. Observe both are getting the responsive table enhancements

Is there something I'm missing?

🇺🇸United States bronzehedwick New York

Hey @javi-er, thank you! After this update, I am seeing the caption be visually hidden if toggled off, and shown if not.

However, if I try to change the setting from visible to hidden or vice versa after I've saved the node, the option doesn't change. I think this is a big improvement, though, so fine if we want to handle that in a separate issue.

🇺🇸United States bronzehedwick New York

Tested a confirmed the solution works as expected. once() is implemented correctly as well.

🇺🇸United States bronzehedwick New York

I'm seeing almost the opposite.

  1. When I set the caption to be visible, it stays visible
  2. When I set the caption to be hidden, is also stays visible (no visually-hidden class is applied)
  3. After setting the caption to be hidden, and editing the node again, the editor says the caption is visible

Since the caption is always visible, and the editor always reflects that, my guess is that the caption visible state isn't being saved properly, and that could account for the display issue. Interesting that this is essentially the reverse of what you're seeing @delmarr. Are you still seeing the behavior you're describing in this ticket?

🇺🇸United States bronzehedwick New York

Looks good to me! Tested locally and MR behaves as expected.

🇺🇸United States bronzehedwick New York

@javi-er Finished addressing the feedback you provided. Let me know if there are other changes needed!

🇺🇸United States bronzehedwick New York

Looks good to me @javier! I tested locally and this behaves as expected. Good to merge IMO.

🇺🇸United States bronzehedwick New York

Thanks @javier! I pushed fixes for the issues you raised, aside from the ones needed in follow ups.

🇺🇸United States bronzehedwick New York

@javier I pushed a two-fold fix:

  1. Remove yarn dependency, tracking the tabled library inside this repository. This removes the need for module users to install yarn.
  2. Add a configuration page for end users to change the CSS selector which applies tabled, along with a sensible default.
🇺🇸United States bronzehedwick New York

After some research here, I actually think the best way to include the tabled dependency is through package.json, instead of through composer. The reason is two fold.

  1. There are already dependencies managed in package.json, so it will keep everything centrally managed.
  2. The composer installation pattern requires a different composer command via the composer merge plugin, which is built for optional dependencies. While the dependency could be optional, I'd argue that this would create more confusion and work for 99% of the use cases, where you just want a fully responsive and accessible table element out of the box.
🇺🇸United States bronzehedwick New York

Thanks for all the work on this!

I applied the patch, and I'm not getting the chosen environment color in the side strip or the environment menu. I dumped the variables and it looks like they're still set to the defaults. Can confirm caches are rebuilt.

🇺🇸United States bronzehedwick New York

Also, it would be great if this MR didn't change any SVG file that doesn't really need to change to make it easier to isolate the changes.

Sorry about that @ckrina, those changes snuck in due to IDE automatically inserted newlines at the end of the file. I've pushed a commit to revert that, so those changes should no longer be in the diff.

🇺🇸United States bronzehedwick New York

@SKAUGHT aria-hidden="true" is applied to the .toolbar-button__abbreviation element. That should handle the use case you're mentioning.

🇺🇸United States bronzehedwick New York

@smustgrave I added an abbreviation test. It's my first time writing a Drupal test, so open to any feedback. Thanks!

🇺🇸United States bronzehedwick New York

bronzehedwick changed the visibility of the branch 3424744-on-collapsed-sidebars to hidden.

🇺🇸United States bronzehedwick New York

bronzehedwick changed the visibility of the branch 3424744-on-collapsed-sidebars to hidden.

🇺🇸United States bronzehedwick New York

Fixed by https://www.drupal.org/project/navigation/issues/3436130 📌 Ensure keyboard navigation works with the drawer Active

🇺🇸United States bronzehedwick New York

Fixed by https://www.drupal.org/project/navigation/issues/3436130 📌 Ensure keyboard navigation works with the drawer Active

🇺🇸United States bronzehedwick New York

Fixed by https://www.drupal.org/project/navigation/issues/3436130 📌 Ensure keyboard navigation works with the drawer Active

🇺🇸United States bronzehedwick New York

Got it @SKAUGHT, I pushed a commit that hard codes 40 as the width and height.

🇺🇸United States bronzehedwick New York

moving width/height to var seems not needed [as this doesn't recenter, re-size the actual paths]

This will re-size/re-center the entire graphic, as intended.

All width/height sizing and any drawing code inside an SVG is relative to the viewBox. So the width and height on <rect fill="#347efe" width="32" height="32" rx="8"/> being set to 32 is the same as saying 100% of the width and height, since the viewBox is 32/32.

Increasing the width/height on the <svg> element scales everything inside it based on the ratio of the viewBox, aka the S in SVG ;)

also noticed viewbox is "0 0 32 32" -- i think should be 40

As per above, the SVG is displayed at 40/40, but it's scaling baseline is 32/32 (aka, the viewBox). Changing the viewBox from 32/32 will make the internal scaling math off, in this case, adding extra white space around the SVG, optically shrinking it.

You can test all this by changing the width and height values on the <svg> element.

🇺🇸United States bronzehedwick New York

I also think we need to rework current events system.

They should be better documented and all iterations click/hovers/keys should go in same manner.
Since only events cares globally about multiple things. EG

- Switch expand/collapse text
- Switch classes
- Controls sibling elements open/close

@finnsky would this be appropriate for a follow up ticket?

🇺🇸United States bronzehedwick New York

Ah that makes sense, thanks @SKAUGHT. I pushed a commit that adds back that condition.

🇺🇸United States bronzehedwick New York

I created a new MR with a new approach. Is this more inline with what you're expecting @ckrina?

🇺🇸United States bronzehedwick New York

@finnsky that last commit fixed the issue. Thanks!

This approach also resolves the follow up issues, listed below.

Moving to RTBC.

🇺🇸United States bronzehedwick New York

Thanks @finnsky! Your updates addressed all my feedback.

There is one small, new regression, I think from the 1.x rebase. There's extra padding and grey bar below each third level accordion.

This seems to be caused by the recently merged additional padding MR 🐛 Bottom padding needs to be increased along gray container box of grandchildren menu items Fixed running up against the new styles.

One solution would be to change line 38 of toolbar-menu.pcss.css from:

.toolbar-menu--level-2 {

to:

.toolbar-menu--level-2:not([inert]) {
🇺🇸United States bronzehedwick New York

I think this is a reasonable approach, removing the extra network request. We don't get the added styling benefits, but those don't have a plan to be taken advantage of right now, and this will remove refactoring. Marking RBTC!

🇺🇸United States bronzehedwick New York

I think this issue has been fixed by #3440228 🐛 Bottom padding needs to be increased along gray container box of grandchildren menu items Fixed . Is that right @jwitkowski79?

🇺🇸United States bronzehedwick New York

Looks good! I tested the MR locally, and found no regressions. I searched the code base for any references to user.jpg, and found none.

🇺🇸United States bronzehedwick New York

Hey @finnsky, thanks for this! Some things I noticed.

  • When closing a popover with left arrow, focus moves up to the previous menu item, instead of moving back to the popover's button.
  • Pressing right arrow inside an open popover, the the popover is dismissed and focus is moved to the next main menu item below the current item. I would expect nothing to happen.
  • When inside a third level menu (accordion), there's no way to move out of it.
    • Pressing either arrow left or right dismiss the entire popover.
    • Pressing Space scrolls the page.

    I would expect pressing arrow left (and maybe arrow right?) or Space to collapse the accordion, moving focus back to the top level of the accordion.

  • After initially opening a popover, pressing up arrow dismisses the popover. I would expect the focus to move to the last menu item in the popover.
  • When focus is on a collapsed third level accordion, pressing left arrow does nothing. I would expect the popover to be dismissed.
🇺🇸United States bronzehedwick New York

Moving to NR, given @ckrina's guidance, above. The follow up issues are below.

  1. Improv keyboard navigation focus inside drawer 📌 Improv keyboard navigation inside drawer Active
  2. Hover effect can cause problems with keyboard focus 📌 Hover effect can cause problems with keyboard focus Active
🇺🇸United States bronzehedwick New York

Pushed a fix for the inaccessible Shortcuts menu via arrow keys. Simple oversight, just needed to add tabindex.

🇺🇸United States bronzehedwick New York

Looks like the problem here is the hover. The hover effect is controlled in JavaScript, and has a delay on toggling (by design). The hover off is triggered when you hover over another menu item. That means that if you quickly hover over a few items, then move your mouse outside the menu drawer, the hovered items will stay hovered. This blocks arrow movement, unless you press arrow left to "dismiss" the (hidden) popover.

I haven't been able to reproduce the JS error @rkoller and @finnsky are seeing yet.

This is an architectural issue, and will probably require some larger refactoring to resolve.

I think this and the other remaining issues should be moved into the follow up ticket 📌 Improv keyboard navigation inside drawer Active , to reduce churn while the core MR is being made. Does that make sense with what you are thinking @ckrina?

🇺🇸United States bronzehedwick New York

in safari moving by the arrow keys through the top level items sometimes just stops working and i am unable to move up and down anymore (in edge and firefox i was unable to reproduce that)

I pushed a fix for this. I think the issue is pressing right arrow on menu items that don't have popovers, which pushes focus to a hidden element, preventing other arrow movement until left arrow is pressed.

🇺🇸United States bronzehedwick New York

Here's the follow up ticket https://www.drupal.org/project/navigation/issues/3440047 📌 Improv keyboard navigation inside drawer Active

🇺🇸United States bronzehedwick New York

Thanks for the review @rkoller. I pushed an update that should address the following.

  1. Up and down arrow keys moving focus to both expandable menu items and links.
  2. Up and down arrow keys moving focus as above inside popovers when opened.
  3. Typing a character jumping to either expandable menus or links, as above.
  4. Left and right arrows should open and close popovers consistently.

There's some issues left, below.

  1. Focus immediately moving to the first popover item when opened. Currently the first down arrow press after the popover is opened will focus on the first popover menu item.
  2. The shortcuts popover menu items are still inaccessible from the keyboard.
  3. Mixing navigation with tab and arrow keys can result in unexpected jumps in focus.

Since this MR does improve the keyboard navigation, and fixing the issues above won't be insignificant, I propose we split the remaining items into a new ticket.

🇺🇸United States bronzehedwick New York

I added code to handle keyboard navigation, patterned off the W3C guidelines outlined in the ticket description.

🇺🇸United States bronzehedwick New York

One change from the table above I think should be made is reversing the Up/Down and Left/Right arrow functions. The W3C example is a horizontal menu, and this is a vertical menu.

🇺🇸United States bronzehedwick New York

Thanks for adding that @skaught! That table is what I'm going on.

🇺🇸United States bronzehedwick New York

Thanks for the suggestion @silviu-s. As mentioned previously in the comment thread, I am working on this, and will open an MR to review with everything listed. As a point of process, an issue should not transition to "Needs Review" until all aspects of the scope are addressed.

🇺🇸United States bronzehedwick New York

@ckrina I fixed the incorrect chevron direction for RTL, as well as rebasing on top of 1.x and resolving the conflicts.

🇺🇸United States bronzehedwick New York

@rkoller Agreed on Esc. I'm following the W3C guidelines, which also includes patterns for arrow key navigation, Home and End.

Regarding the items that are not keyboard navigable, thanks for spotting! I'll look into that.

🇺🇸United States bronzehedwick New York

Hi all, I pushed fixes for the issues raised. However, note that a real RTL language, like Arabic, must be installed and selected for a proper test. Switching the dir property via browser dev tools will result in incorrect behavior, as Drupal isn't aware of this, and will incorrectly set an offset variable the navigation relies on to display properly.

Issues fixed

  1. When the drawer slides out, there is a subtle gradient that sweeps across the lower part of the navigation (see gif below)
  2. At desktop, the first level chevrons should be pointing to the left, in the direction that the drawer now opens.
  3. RTL uses the wrong offset variable for it's positioning math (the "left" variable instead of the "right" variable)
Production build 0.71.5 2024