Developer Announcements

jmclaren
HubSpot Employee
HubSpot Employee

Update to "Follow Me - LP" default module

The "Follow Me - LP" module provided by HubSpot as a default module for CMS content is being updated to fix a couple of issues. This module is separate from the "Follow Me" module, and the "Follow Me - Email" module. The Follow me LP module is intended to be used on landing pages and landing page templates.

We will be updating the module's module.html which previously caused all of the social anchor links to have a duplicate id attribute. 

The duplicate id is an accessibility issue and doesn't make it easier to style the icons.

Here's what the old code looked like:

jmclaren_0-1647893864371.png

 

The new code looks like: 

jmclaren_1-1647893864207.png

 

As you'll notice we're dropping the id attribute and adding a new social-links__icon-–{{ network }} class that denotes the social network that it's for. If you need to style a specific social icon differently, you can use that class name to target that icon.

Additionally, we're making a change to how the instance specific CSS styles are applied. We're switching from using {{ name }} to the scope_css HubL tag to scope the CSS to the specific instance. We don't anticipate disruption as a result of the CSS changes.

What to expect

Most HubSpot customers will be completely unaffected by this change. The only accounts that may be impacted are ones where developers have written custom code (CSS or JavaScript) targeting the id attribute for the social icon. Due to that attribute being duplicated previously, it was not a very useful way to target your code, so we expect the actual number of affected sites to be very minimal. If you are scoping your CSS that way, we would encourage using the class names instead.

When is this happening?

While this change should not negatively impact the vast majority of HubSpot customers, we thought it best to communicate the change ahead of time in case developers want to check their CSS and JavaScript to see if it targets that id attribute. In 91 days, June 20th, 2022 the change will go into effect.

Have any questions about this change? ask below.

Jon McLaren

Sr. CMS Developer Advocate

Get started developing on the HubSpot CMS Developer Changelog
How to optimize your CMS Hub site for speed

If my reply answered your question, please mark it as a solution, to make it easier for others to find.

0 Avaliação positiva
0 Respostas 0

0 Respostas

Este post ainda não tem respostas

Ninguém respondeu a este post ainda. Volte em breve para ver se alguém tem alguma solução ou responda caso saiba como ajudar! Tudo o que vai, volta.

responder ao post

Precisa de ajuda para responder? Confira as nossas Diretrizes da Comunidade