ucsc / wcms-design-templates

Styles and Javascript for official UC Santa Cruz web templates
http://webassets.ucsc.edu
4 stars 4 forks source link

OPERS top nav spacing issues #426

Open teresasilva71 opened 6 years ago

teresasilva71 commented 6 years ago

INC0547074 They already put a ticket in: opers spacing

teresasilva71 commented 6 years ago

AND the yellow arrow icon isn't appearing.

knice commented 6 years ago

They have width attributes in the HTML of their nav items. They need to remove the widths and it will work fine.

knice commented 6 years ago

Icons only appear when the dropdown text is wrapped in a <span>. There is no way around this one. It's been this way all along. That is why some dropdown menus show the icon and some don't.

teresasilva71 commented 6 years ago

Makes sense but clients aren't actually coding that into their top nav so I'm not sure how to make this consistent. What is the span class required for this? Was it default and then clients deleted it over time?

knice commented 6 years ago

When we first built main navs for people, they could only have dropdowns in the last nav item. We'd use a <span> in place of an <a> for the last nav item, and then put the <ul> of dropdown items immediately after it.

I might be able to write some Javascript to hunt down a tags with uls right after them. But that is not a priority while close bugs.

teresasilva71 commented 6 years ago

See INC0553360. We have a client asking about the drop down arrows. I'm happy to fix these as they come in....just need to know if it's simple HTML I can add to a top nav block?