Skip to content

Commit

Permalink
chore: rename classes to be more meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
Lelith committed Apr 25, 2024
1 parent 452bc29 commit f2fcc21
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NavbarAccountProps } from './NavbarAccount';
import { getGlowOnFocusStyles } from '../utils.styles';

export const getNavbarAccountStyles = () => ({
root: css(
navbarAccount: css(
{
// default button reset styles
margin: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function _NavbarAccount(
variant="transparent"
size="small"
ref={ref}
className={cx(styles.root, className)}
className={cx(styles.navbarAccount, className)}
testId={testId}
>
<img
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { css } from 'emotion';
import tokens from '@contentful/f36-tokens';

export const getNavbarBadgeStyles = () => ({
root: css({
navbarBadge: css({
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
Expand Down
2 changes: 1 addition & 1 deletion packages/components/navbar/src/NavbarBadge/NavbarBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function _NavbarBadge(
<Comp
{...otherProps}
ref={ref}
className={cx(styles.root, className)}
className={cx(styles.navbarBadge, className)}
data-test-id={testId}
>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getGlowOnFocusStyles } from '../utils.styles';
import tokens from '@contentful/f36-tokens';

export const getNavbarHelpStyles = () => ({
root: css(
navbarHelp: css(
{
// default button reset styles
fontSize: tokens.fontSizeS,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/navbar/src/NavbarHelp/NavbarHelp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function _NavbarHelp(
{...otherProps}
as="button"
ref={ref}
className={cx(styles.root, className)}
className={cx(styles.navbarHelp, className)}
testId={testId}
variant="transparent"
size="small"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getGlowOnFocusStyles } from '../utils.styles';
import tokens from '@contentful/f36-tokens';

export const getNavbarSearchStyles = () => ({
root: css(
navbarSearch: css(
{
// default button reset styles
padding: tokens.spacing2Xs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function _NavbarSearch(
variant="transparent"
ref={ref}
size="small"
className={cx(styles.root, className)}
className={cx(styles.navbarSearch, className)}
testId={testId}
icon={<SearchIcon size="medium" />}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { hexToRGBA } from '@contentful/f36-utils';
import { getGlowOnFocusStyles } from '../utils.styles';

export const getNavbarSwitcherStyles = () => ({
root: css(
navbarSwitcher: css(
{
// default button reset styles
margin: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function _NavbarSwitcher(
{...otherProps}
as="button"
ref={ref}
className={cx(styles.root, className)}
className={cx(styles.navbarSwitcher, className)}
testId={testId}
alignItems="center"
fullHeight
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import tokens from '@contentful/f36-tokens';
import { getGlowOnFocusStyles } from '../utils.styles';
import { hexToRGBA } from '@contentful/f36-utils';
export const getNavbarTopbarItemStyles = () => ({
root: css(
navbarTopItem: css(
{
// default button reset styles
margin: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function _NavbarTopbarItem<
<Comp
{...otherProps}
ref={ref}
className={cx(styles.root, className)}
className={cx(styles.navbarTopItem, className)}
data-test-id={testId}
>
{children}
Expand Down

0 comments on commit f2fcc21

Please sign in to comment.