Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class names with Left/Right #48

Open
mharsat opened this issue Aug 11, 2019 · 2 comments
Open

Class names with Left/Right #48

mharsat opened this issue Aug 11, 2019 · 2 comments

Comments

@mharsat
Copy link

mharsat commented Aug 11, 2019

Class names in which the name contains the words left or right are translated in the following manner:

Input:

.arrowLeft {
  margin-right: -3px;
}

Output:

[dir=ltr] :export {
  alignLeft: ***_marginRight_***; }

[dir=rtl] :export{
  alignLeft: ***_marginLeft_***; }
@vkalinichev
Copy link
Owner

I can't reproduce it, and add test for you case.

If the issue is still actual, can you provide your postcss/webpack-config?

@mharsat
Copy link
Author

mharsat commented Aug 26, 2019

We are using rollup with with rollup-plugin-postcss for postcss with the following configuration

  postcss({
    minimize: {
      reduceIdents: false,
      safe: true,
    },
    modules: {
      generateScopedName: IS_DEV_ENV ? '[name]__[local]___[hash:base64:5]' : '[hash:base64:5]',
    },
    extract: 'dist/styles.min.css',
    plugins: [
      postcssExclude({
        filter: ['**/*.global.scss', '**/inline-toolbar.scss'],
        plugins: [postcssRTL()],
      }),
      postcssURL({
        url: asset => asset.url.replace('../', '/statics/'),
      }),
    ],
  })

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

No branches or pull requests

2 participants