Skip to content

Commit

Permalink
fix: hash classes (#7857)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud authored Oct 30, 2024
1 parent 792e571 commit 6086d34
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/vkui/package.swcrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
[
"swc-plugin-css-modules",
{
"generate_scoped_name": "vkui[folder]__[local]"
"generate_scoped_name": "[folder]__[local]--[hash:base64:5]"
}
],
[
Expand Down
2 changes: 1 addition & 1 deletion packages/vkui/rspack.styles.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const config: Configuration = {
[
'swc-plugin-css-modules',
{
generate_scoped_name: 'vkui[folder]_[local]',
generate_scoped_name: '[folder]__[local]--[hash:base64:5]',
},
],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { baselineComponent, userEvent, waitForFloatingPosition } from '../../tes
import { Avatar } from '../Avatar/Avatar';
import { CustomSelectOption } from '../CustomSelectOption/CustomSelectOption';
import { CustomSelect, type CustomSelectRenderOption, type SelectProps } from './CustomSelect';
import styles from './CustomSelectDropdown.module.css';
import styles from './CustomSelect.module.css';

let placementStub: Placement | undefined = undefined;
jest.mock('../../lib/floating', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from '@testing-library/react';
import { baselineComponent } from '../../testing/utils';
import { CUSTOM_CSS_TOKEN_FOR_CELL_WIDTH, HorizontalCell } from './HorizontalCell';
import styles from './HorizontaCell.module.css';
import styles from './HorizontalCell.module.css';

describe('HorizontalCell', () => {
baselineComponent((props) => <HorizontalCell {...props}>HorizontalCell</HorizontalCell>);
Expand Down
2 changes: 1 addition & 1 deletion shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ module.exports = {
'./node_modules/@vkontakte/vkui-tokens/themes/vkComDark/cssVars/declarations/onlyVariablesLocal.css',
],

generateScopedName: 'vkui[folder]__[local]',
generateScopedName: '[folder]__[local]--[hash:base64:5]',
};

0 comments on commit 6086d34

Please sign in to comment.