question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to disable appending hash

See original GitHub issue

For similar reasons as #141 (BEM elements/modifiers), I’d like to optionally disable the appended hash on class names.

The fingerprint disallows me to reuse the component name for child elements and modifiers, ie:

&__element {
...
}
&--modifier {
...
}
<div class="component-name???__element />

or:

{{component-name class="component-name???--modifier"}}

However, I don’t want to lose wrapping the component markup with the component name, and wrapping my styles in a parent selector.

Would you be open to another ENV option that just disables appending the hash?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
webarkcommented, Oct 26, 2016

@NickChristensen Just released a 0.2.1 version. In the updated wiki there is an example of how to do BEM with the new computed property as well as an option to disable the namecpacing.

0reactions
webarkcommented, Apr 22, 2016

Giving access to the class name is definatly something that is going to happen. Most likely through a property on the component. This could allow a potential modifier to be passed or set as another property and used in the outputed class. Im on vacation, but if you wanted to toy around with it, I’d look into the addon initialized…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Have an option to disable Redoc URL hash or to add a preffix ...
It would be nice to have an option to disable ReDoc URL hash and, maybe, an option to add a URL hash prefix,...
Read more >
How to disable hash changes in jQuery UI Tabs - Stack Overflow
Having the same problem. Here you go! // Prevent hashtag change on tab link click $('.ui-tabs-nav a').live('click', function(e){ e.preventDefault(); e.
Read more >
nix hash to-sri
Disable substituters and consider all previously downloaded files up-to-date. --option name value. Set the Nix configuration setting name to value ...
Read more >
Selective Password Hash Synchronization for Azure AD ...
The first rule will disable password hash sync. Provide the following name to the new custom rule: In from AD - User AccountEnabled...
Read more >
css-loader | webpack - JS.ORG
Allows to enable/disable CSS Modules or ICSS and setup configuration: ... Allows to add custom hash to generate more unique classes. For more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found