Closed (fixed)
Project:
BS Base
Version:
8.x-1.x-dev
Component:
BS Bootstrap
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2023 at 12:30 UTC
Updated:
26 Apr 2024 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pivica commentedHere is a patch. Note that for this patch to work you first need a patch from #3344954: Logo accessibility problems, I guess it is a time for a new release ;)
This also needs a patch from #3389133: Add service for extraction dimensions from SVG image.
Comment #3
berdirthis assumes that the logo is svg, should we check the file extension?
I think it maks sense to do a getContainer()->hasService(), because if someone for some reason didn't update the module, it's going to be very hard to recover from this.
I assume we don't want to set only width or height, so we should make sure we either return both or nothing and then you can just do if ($dimensions).
Comment #4
pivica commented> 1. this assumes that the logo is svg, should we check the file extension?
This we are already doing here, right?
2. and 3. should be done, needed to do a new patch for related service in bs_lib https://www.drupal.org/project/bs_lib/issues/3389133#comment-15253540.
Comment #5
pivica commentedRemoved one extra if and added rounding to int.
Comment #7
pivica commentedCommitted.