Account created on 14 September 2006, almost 18 years ago
#

Recent comments

πŸ‡¨πŸ‡¦Canada robbdavis

Just had a client stumble upon this and the custom maintenance page and text made no sense in the context of failed login. They asked for a separate message / theme for failed login.

A separate template option would be great.

As a hack, I used a path-name class in the the body and hid the maintenance stuff and displayed blocked login stuff based on whether the path was `path-login`.

πŸ‡¨πŸ‡¦Canada robbdavis

One more piece of info. This is only happening when logged in when drupal's tabs are on the page (view/edit/ etc./).

πŸ‡¨πŸ‡¦Canada robbdavis

OK this is definitely an issue with the jquery dependency.

Removing the jquery dependency and updating nav-tabs.js with vanilla javascript per this issue πŸ“Œ Remove jquery dependency Fixed will fix.

πŸ‡¨πŸ‡¦Canada robbdavis

I love the option of breaking out the bootstrap components. I think I'll borrow that.

As for bootstrap, an option in config to use a cdn or /libraries version (installed via composer?) would be awesome.

πŸ‡¨πŸ‡¦Canada robbdavis

OK I tried using math.abs() but it wasn't working until I found you need to use @use 'sass:math' at the top of the file. Not sure how to create a patch file so here's the code that works for _theme.scss:

@use 'sass:math';

@each $state, $value in $theme-colors {
  $alert-background: shift-color($value, $alert-bg-scale);
  $alert-border: shift-color($value, $alert-border-scale);
  $alert-color: shift-color($value, $alert-color-scale);
  @if (contrast-ratio($alert-background, $alert-color) < $min-contrast-ratio) {
    $alert-color: mix($value, color-contrast($alert-background), math.abs($alert-color-scale));
  }
  .color-#{$state} {
    --#{$prefix}alert-color: #{$alert-color};
    --#{$prefix}alert-bg: #{$alert-color};
    --#{$prefix}alert-border-color: #{$alert-border};

    // @todo: remove .alert-link  and enable line below when 5.2 is removed.
    //--#{$prefix}alert-link-color: shade-color($alert-color, 20%);

    .alert-link {
      color: shade-color($alert-color, 20%);
    }
  }
}
πŸ‡¨πŸ‡¦Canada robbdavis

I'm getting this warning too.

I set up gulp to trigger my sass watch. So not sure the error is due to the way I set up sass to compile or if this is a legitimate deprecation warning due to using the most recent version of sass?

Deprecation Warning: Passing percentage units to the global abs() function is deprecated.
In the future, this will emit a CSS abs() function to be resolved by the browser.
To preserve current behavior: math.abs(40%)
To emit a CSS abs() now: abs(#{40%})
More info: https://sass-lang.com/d/abs-percent

  β•·
6 β”‚     $alert-color: mix($value, color-contrast($alert-background), abs($alert-color-scale));
πŸ‡¨πŸ‡¦Canada robbdavis

I hit this issue too. I had uninstalled some aqcuia lighting modules and entity browser. The permissions never got removed during the uninstall and after that I'd hit this error when trying to save permisions or unintall other modules.

I tried to manually remove the permissions from the roles config.yml. This solved the issue locally but on config import on a test eviro, the modules were deleted before the updated permissions imported and I hit this error again.

Looks like patch in #11 fixed the issue.

πŸ‡¨πŸ‡¦Canada robbdavis

This is still an issue. We want all users landing at /user to be redirected to saml login. But we also want drush uli to work for local environments or test environments where saml is not hooked up.

The patch in #13 does work and seems fine for us given that we won't enable 'allow default login'. But it it's certainly a hack. It would nice to just have a configuration option to make drush uli work.

πŸ‡¨πŸ‡¦Canada robbdavis

With that enabled, you can scan all your custom modules. It will show you exactly where you need to add the new access checks.

πŸ‡¨πŸ‡¦Canada robbdavis

Just fyi. That link above appears to be an application for a different module.

πŸ‡¨πŸ‡¦Canada robbdavis

Seems obvious in retrospect but I lost an hour or more to not noticing that and hunting for why my style sheet wasn't loading in ckedtior5.

πŸ‡¨πŸ‡¦Canada robbdavis

Yes. Thanks @justcladwell!

For those on Pantehon, fyi, in the config.php, you'll need to set the 'loggingdir' to null.
'loggingdir' => NULL,

πŸ‡¨πŸ‡¦Canada robbdavis

#15 alone worked for me... for now.. we'll see if we still have issues and need #29

πŸ‡¨πŸ‡¦Canada robbdavis

I am also seeing this issue. The above patches don't help. No errors in the console.

πŸ‡¨πŸ‡¦Canada robbdavis

Any chance we can roll this into the dev version?

πŸ‡¨πŸ‡¦Canada robbdavis

Thanks for this. Merge plugin stopped working on Pantheon and having the library disappear caused a few errors:

An error occurred during the execution of the Ajax response: The following files could not be loaded: //chosen.css

Getting the library back with the posted method fixed. So, yeah, this alternative method should be in the read me.

πŸ‡¨πŸ‡¦Canada robbdavis

media_library_media_modify provides a media reference field that allows applying focal point just for that field. The concept is great but there is currently an issue where the user needs to view the preview in order to get the focal point to change.

πŸ‡¨πŸ‡¦Canada robbdavis

Just did some more testing and the TLDR is that the only way the focal point change applies is if the preview image option is enabled AND the user actually previews the image.

If preview is not viewed, the changes do not apply.

This is on my local machine with caching off.

πŸ‡¨πŸ‡¦Canada robbdavis

I am seeing this behavior also. I am using media-library_media_modify so that I can alter the focal point only on this particular reference field.

When I go to configure the block where this image exists, then try to change the focal point, the change only applies if I view the preview first.

πŸ‡¨πŸ‡¦Canada robbdavis

map to products[*].image.src might work.

πŸ‡¨πŸ‡¦Canada robbdavis

I am also having trouble figuring out how to do this.

πŸ‡¨πŸ‡¦Canada robbdavis

This is also broken with adminimal theme. Patch #3 fixes the issue.

πŸ‡¨πŸ‡¦Canada robbdavis

I'm a Drupal developer who has never had to use a js framework. I know basic js and jquery but the writing is on the wall; I'm going to have to learn one of these frameworks soon. From what I've been reading, vue is the most accessible and possibly the best. This article for example:

Why you should leave React for Vue, and never use it again.

https://blog.sourcerer.io/why-you-should-leave-react-for-vue-and-never-u...

Production build 0.69.0 2024