You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When both text color and background color are set, the RichText Annotation object only provides the text color and leaves out background color. The documentation clearly lists possible values of the color property as a list of all text colors and background colors.
With the color property only being able to specify one color, another property would be necessary to define text color and background color as separate options.
To Reproduce
Node version: v20.12.2
Notion JS library version: 2.2.15
Steps to reproduce the behavior:
Set the color of a RichText annotation to Blue Background in Notion.
Set the color of the same RichText annotation to Orange Text.
Observe that Orange Text and Blue Background can be applied at the same time.
Make a request to retrieve RichText content with annotations.
Check the color property of the annotation object in the response.
Observe the color property returning "orange" and nothing else.
Expected behavior
The text color and background color should exist as two different properties in the RichText Annotation object since they are capable of being applied at the same time. Since color currently prioritizes text color anyways, a background color property should be added and allowing background color to be specified.
Screenshots
The documentation:
What it looks like on notion
What the annotation object looks like for the text
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
When both text color and background color are set, the RichText Annotation object only provides the text color and leaves out background color. The documentation clearly lists possible values of the color property as a list of all text colors and background colors.
With the
color
property only being able to specify one color, another property would be necessary to define text color and background color as separate options.To Reproduce
Node version: v20.12.2
Notion JS library version: 2.2.15
Steps to reproduce the behavior:
color
property of the annotation object in the response.color
property returning"orange"
and nothing else.Expected behavior
The text color and background color should exist as two different properties in the RichText Annotation object since they are capable of being applied at the same time. Since
color
currently prioritizes text color anyways, a background color property should be added and allowing background color to be specified.Screenshots
The documentation:
What it looks like on notion
What the annotation object looks like for the text
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: