Skip to content

Commit b94f1fa

Browse files
authored
feat(ui-library): fixing caption component styles (#818)
1 parent 4201c1f commit b94f1fa

File tree

2 files changed

+3
-3
lines changed
  • packages/ui-library/src/components/internal-components/form-caption-group/form-caption

2 files changed

+3
-3
lines changed

packages/ui-library/src/components/internal-components/form-caption-group/form-caption/index.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { typeSafeNestedCss as css } from "../../../../utils/nested-typesafe-css-literals";
22
import { renderThemedCssStrings } from "../../../../foundation/_tokens-generated/index.pseudo.generated";
33

4-
export const { tokenizedLight: checkboxLight, tokenizedDark: checkboxDark } = renderThemedCssStrings((componentTokens) => {
4+
export const { tokenizedLight: captionLight, tokenizedDark: captionDark } = renderThemedCssStrings((componentTokens) => {
55
const { CaptionComponent } = componentTokens.Forms;
66

77
return css`

packages/ui-library/src/components/internal-components/form-caption-group/form-caption/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { classMap } from 'lit/directives/class-map.js';
44
import { FormSizesType, CaptionVariantType, SizesType } from '../../../../globals/types';
55
import { BlrIconRenderFunction } from '../../../ui/icon/renderFunction';
66
import { SizelessIconType } from '@boiler/icons';
7-
import { formDark, formLight } from '../../../../foundation/semantic-tokens/form.css';
7+
import { captionLight, captionDark } from './index.css';
88
import { calculateIconName } from '../../../../utils/calculate-icon-name';
99
import { ThemeType } from '../../../../foundation/_tokens-generated/index.themes';
1010
import { getComponentConfigToken } from '../../../../utils/get-component-config-token';
@@ -25,7 +25,7 @@ export class BlrFormCaption extends LitElement {
2525

2626
protected render() {
2727
if (this.size) {
28-
const dynamicStyles = this.theme === 'Light' ? [formLight] : [formDark];
28+
const dynamicStyles = this.theme === 'Light' ? [captionLight] : [captionDark];
2929

3030
const classes = classMap({
3131
'blr-form-caption': true,

0 commit comments

Comments
 (0)