Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Removes extra padding and height to the wayfinder. #276

Merged
merged 2 commits into from
Dec 20, 2017

Conversation

designerneil
Copy link
Contributor

@designerneil designerneil commented Dec 15, 2017

Ticket(s)

Please do not submit a Pull Request without a relevant ticket! If you are creating a new pattern or feature, create an issue describing the need for this feature Github first and then link to it below.

Github Issue

Does not have a linked to story because Jira is down!

Description

  • Removes padding and height to wayfinder per UX request
  • Wayfinder expands depending on the length of the link content

To Test

  • Put this snippet in the the wayfinder.js to create a cookie.
    var pageTitle = document.title.replace(' | AMA', ''); var pageUrl = window.location.href; $.cookie.json = true; $.cookie('ama_wayfinder_cookie', [pageTitle, pageUrl], { expires: 1, path: '/'});
    don't commit it.
  • gulp serve
  • Look for wayfinder in organisms/global/wayfinder-referred

Relevant Screenshots/GIFs

screen shot 2017-12-15 at 9 38 21 am

Remaining Tasks

This needs to get tested in D8

Additional Notes

The wayfinder will not show unless there is a cookie called ama_wayfinder.

@@ -11,12 +11,20 @@
Drupal.behaviors.wayfinder = {
attach: function (context, settings) {
(function ($) {

var pageTitle = document.title.replace(' | AMA', '');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@designerneil this looks like it's the debugging code you mention in the testing instructions? Also the console.log line shouldn't be committed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. It's been removed. Thanks

@froboy
Copy link
Contributor

froboy commented Dec 20, 2017

👍

@froboy froboy merged commit 1dcc1b9 into develop Dec 20, 2017
@froboy froboy deleted the feature/wayfinder-tweak branch December 20, 2017 17:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants