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

fix(prefix): make use of -- as a prefix standard #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

diego-codes
Copy link

@diego-codes diego-codes commented Jul 20, 2018

It adds an extra - to the prefixing of class name so it is consistent with Carbon's prefixing standards. This is so that the $prefix value is respected in the building of sass code for Carbon users.

Copy link
Contributor

@seejamescode seejamescode left a comment

Choose a reason for hiding this comment

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

This would be a breaking change that I can’t really find in the BEM website.

I do understand why it is important to existing Carbon users. Would it be possible to edit the prefix in the IBM grid repo to ibm- to get this extra -?

That would be great because it would accommodate the IBM need without confusing non-IBMers.

@diego-codes
Copy link
Author

Sadly we can’t make that update on the IBM grid package because it would conflict with Carbon’s prefix variable bx.

The class names themselves need to be updated to include -- in them like the rest of Carbon’s Sass. That way a consuming developer can declare their own $prefix and generate class names that are consistent all across.

@seejamescode
Copy link
Contributor

In that case, it sounds like the real fix is changing the prefix variable in Carbon right before the grid is imported and then switching the variable back right afterwards. Would that work?

Otherwise, a major change we need to do is prefix the prefix variable in Gridish.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants