Skip to content

Commit 382f884

Browse files
committed
da lints.
1 parent dccbc2c commit 382f884

File tree

1 file changed

+5
-2
lines changed
  • projects/packages/jetpack-mu-wpcom/src/features/wpcom-blocks/code/block-definition

1 file changed

+5
-2
lines changed

projects/packages/jetpack-mu-wpcom/src/features/wpcom-blocks/code/block-definition/block-definition.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,10 @@ const Loading = ( props: EditBlockProps ) => {
370370
};
371371

372372
/**
373+
* Transforms attributes into CSS custom properties for inline style use.
373374
*
374-
* @param attributes
375+
* @param attributes - Block attributes.
376+
* @return CSS style object.
375377
*/
376378
export function colorsToStyle( attributes: Attributes ): {
377379
[ key in `--${ keyof Pick<
@@ -434,7 +436,8 @@ export function colorsToStyle( attributes: Attributes ): {
434436
* A numeric encoding is used for `&` as a workaround for
435437
* {@link https://core.trac.wordpress.org/ticket/63630|Trac 63630}.
436438
* The issue should be fixed in WordPress 6.9.
437-
* @param content
439+
* @param content - Original content.
440+
* @return Encoded content.
438441
*/
439442
function htmlEncode( content: string ): string {
440443
return content

0 commit comments

Comments
 (0)