Skip to content

Commit

Permalink
fix(header): remove incorrectly applied filters to the header fallbac…
Browse files Browse the repository at this point in the history
…k crown image (#997)

The `rev` and `url` filters only apply to the design system docs site itself.  They had erroneously
been applied to an image within the header component, causing an error when the component was used
  • Loading branch information
chrispymm authored Dec 12, 2024
1 parent 5ff643d commit 616280e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moj/components/header/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<path fill="#ffffff" fill-rule="evenodd" d="M15.0611 32.3472L15.2903 33.5459L15.025 33.5944L14.7885 32.4032C14.626 32.4331 14.534 32.4331 14.3119 32.5339L14.3047 32.265L15.4528 32.1119L15.5322 32.3378C15.4275 32.2986 15.0611 32.3472 15.0611 32.3472ZM14.2235 33.7512L13.4275 33.9398C13.4419 33.8166 13.1748 32.6627 13.1062 32.5582L13.9455 32.3584L13.8787 32.6496C13.7632 32.616 13.626 32.6179 13.4708 32.6515L13.5683 33.0697L14.0322 32.9596L14.108 33.1631C14.0159 33.1482 13.7361 33.2228 13.6098 33.2471L13.7109 33.684C13.9383 33.6299 14.1278 33.5496 14.2758 33.4432L14.2795 33.445L14.2235 33.7512ZM11.913 34.1788C11.3318 34.1937 11.2469 33.3349 11.1115 32.911L11.3931 32.8569C11.5285 33.2247 11.4906 34.0873 12.0881 33.9734C12.5213 33.7736 12.1711 33.0623 12.126 32.7206L12.404 32.6795C12.5087 33.249 12.7578 34.2367 11.913 34.1788ZM11.0953 34.3095L10.2975 34.4906C10.3137 34.3674 10.0574 33.2116 9.99059 33.1052L10.83 32.9129L10.7614 33.2042C10.6458 33.1706 10.5086 33.1706 10.3534 33.2023L10.4473 33.6205L10.9112 33.516L10.987 33.7195C10.8931 33.7046 10.6133 33.7755 10.487 33.7998L10.5845 34.2367C10.8119 34.1844 11.0014 34.106 11.1513 34.0014L11.1549 34.0033L11.0953 34.3095ZM9.6007 34.6437C9.62055 34.2348 9.48878 33.5944 9.31008 33.2284L9.69997 33.1426C9.68012 33.5515 9.81189 34.1937 9.99059 34.5578L9.6007 34.6437ZM9.20719 34.3954C9.04293 34.8024 8.54653 34.8958 8.16024 34.9667C8.17829 34.8398 7.94183 33.6616 7.86963 33.5552C8.53931 33.2583 9.49781 33.5459 9.20719 34.3954ZM15.6188 31.7833C12.5737 31.787 9.54113 33.1332 6.49416 33.1332C6.12953 33.1332 5.76491 33.1127 5.39847 33.0697C6.34253 33.8409 6.27574 35.3868 7.6476 35.3868C7.70717 35.3868 7.77035 35.3831 7.83533 35.3775C9.69997 35.1721 11.5538 34.6269 13.3896 34.3263C13.7054 34.2759 15.2253 33.8913 16.1152 33.8913C16.4365 33.8913 16.6748 33.9417 16.7452 34.0761C16.8427 34.2572 16.238 34.7837 16.2325 34.8043C16.2325 34.8099 16.2344 34.8136 16.2416 34.8136C16.3011 34.8136 16.6351 34.6138 16.886 34.4421C17.8788 33.7046 15.7975 31.7833 15.6188 31.7833ZM29.7255 33.1127C29.6623 33.3741 29.5612 33.8689 29.5288 34.1396C30.1262 34.2703 30.3122 33.234 29.7255 33.1127ZM32.0685 33.5328C31.6118 33.4152 31.462 34.3991 31.8429 34.5578C32.3086 34.6717 32.4494 33.6934 32.0685 33.5328ZM30.8735 33.3479L30.7345 33.8707C31.1226 33.9454 31.2905 33.4133 30.8735 33.3479ZM27.211 32.5992C26.7345 32.4648 26.5504 33.4842 26.9511 33.656C27.4367 33.7904 27.6136 32.7766 27.211 32.5992Z"/>
<path fill="#ffffff" fill-rule="evenodd" d="M33.5541 33.895C33.5541 33.895 33.3772 34.9312 33.388 35.019L33.0866 34.963C33.0811 34.9705 33.2725 34.0537 33.3194 33.8558C33.2129 33.8315 33.0866 33.8427 32.9674 33.8894L32.9656 33.8857L33.0866 33.6261L33.9043 33.7774L33.962 34.0649C33.8916 33.9958 33.6714 33.9174 33.5541 33.895ZM32.8393 33.9529C32.8086 34.1919 32.7003 34.6792 32.7436 34.907L32.4403 34.8622C32.5739 34.5074 32.6642 33.9118 32.6425 33.5328L32.9458 33.5795C32.897 33.684 32.8609 33.8091 32.8393 33.9529ZM32.0324 34.7445C31.258 34.8939 31.258 33.5403 31.8808 33.3517C32.657 33.1836 32.6606 34.5578 32.0324 34.7445ZM31.3645 33.6766C31.3266 33.8297 31.2165 33.9342 31.0378 33.9921C31.1154 34.2572 31.1624 34.345 31.2941 34.6325L31.2923 34.64L31.0883 34.6064C31.045 34.5821 30.7887 34.2087 30.7111 34.007C30.666 34.1732 30.6208 34.3842 30.6389 34.5354L30.2923 34.4794C30.3555 34.3749 30.628 33.2733 30.6172 33.1575C30.9187 33.1967 31.4584 33.2527 31.3645 33.6766ZM29.8645 34.2964C29.6822 34.3636 29.4223 34.289 29.2327 34.2516L29.4872 32.9036C30.332 32.8457 30.684 33.9772 29.8645 34.2964ZM28.6641 34.1825C28.5703 34.162 28.0594 33.0884 28.0594 33.0884C28.0594 33.0884 27.9367 33.923 27.9042 33.9809L27.6731 33.9473L27.9367 32.6384L28.193 32.6739C28.1948 32.7075 28.5991 33.5925 28.5991 33.5925C28.5991 33.5925 28.7345 32.8756 28.7472 32.8121L28.9421 32.8681L28.6641 34.1825ZM27.6009 33.3367C27.3248 34.3039 26.2471 33.7755 26.5684 32.9129C26.841 31.9756 27.9204 32.4723 27.6009 33.3367ZM26.4746 32.2949C26.4294 32.3378 26.267 33.516 26.2778 33.6317L25.9709 33.5701C26.0269 33.4674 26.0991 32.6459 26.0991 32.6459L25.572 33.4917L25.2634 32.5376C25.2634 32.5376 25.1388 33.2228 25.1334 33.4432L24.8319 33.4002C24.9294 33.2397 25.1171 32.0279 25.1171 32.0279L25.4294 32.0876C25.4366 32.1511 25.6731 32.9745 25.6731 32.9745C25.6731 32.9745 26.0865 32.2557 26.1099 32.2183L26.4764 32.2893L26.4746 32.2949ZM34.0252 33.1276C33.6443 33.1276 33.2833 33.1202 33.1046 33.1052C31.0974 32.9036 29.11 32.3098 27.1081 31.9812C26.5305 31.886 26.0576 31.7982 25.6478 31.7982C24.7976 31.7982 24.2182 32.1791 23.5341 33.6896C23.2417 34.2628 24.22 34.8099 24.4348 34.8342C23.6316 34.1247 23.9114 33.9137 24.5449 33.9137C25.4222 33.9137 26.9746 34.3151 27.2778 34.3543C29.1136 34.6568 30.9692 35.2001 32.8339 35.4074C32.8988 35.413 32.962 35.4167 33.0216 35.4167C34.3934 35.4167 34.3267 33.8689 35.2707 33.0996C35.1028 33.1146 34.5469 33.1276 34.0252 33.1276Z"/>

<image src="{{ 'assets/images/moj-logotype-crest-2024.png' | rev | url }}" xlink:href="" class="moj-header__logotype-crest-fallback-image" width="40" height="40"></image>
<image src="/assets/images/moj-logotype-crest-2024.png" xlink:href="" class="moj-header__logotype-crest-fallback-image" width="40" height="40"></image>

</svg>

Expand Down

0 comments on commit 616280e

Please sign in to comment.