Skip to content

Commit

Permalink
fix: Add enumerated values for fontFamily/fontEdge (#181)
Browse files Browse the repository at this point in the history
* fix: Add enumerated values for fontFamily/fontEdge
* fix: Fixing example to match new enums
  • Loading branch information
jlacivita authored Sep 12, 2023
1 parent dd45f8a commit de35cb8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/openrpc/accessibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"value": {
"enabled": true,
"styles": {
"fontFamily": "Monospace sans-serif",
"fontFamily": "monospaced_sanserif",
"fontSize": 1,
"fontColor": "#ffffff",
"fontEdge": "none",
Expand Down Expand Up @@ -92,7 +92,7 @@
"value": {
"enabled": true,
"styles": {
"fontFamily": "Monospace sans-serif",
"fontFamily": "monospaced_sanserif",
"fontSize": 1,
"fontColor": "#ffffff",
"fontEdge": "none",
Expand Down
4 changes: 2 additions & 2 deletions src/openrpc/closed_captions.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"params": [],
"result": {
"name": "family",
"value": "monospace"
"value": "monospaced_sanserif"
}
},
{
Expand Down Expand Up @@ -225,7 +225,7 @@
"params": [],
"result": {
"name": "edge",
"value": "solid"
"value": "uniform"
}
},
{
Expand Down
25 changes: 22 additions & 3 deletions src/schemas/accessibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,33 @@
],
"definitions": {
"FontFamily": {
"type": ["string", "null"]
"type": ["string", "null"],
"enum": [
"monospaced_serif",
"proportional_serif",
"monospaced_sanserif",
"proportional_sanserif",
"smallcaps",
"cursive",
"casual",
null
]
},
"FontSize": {
"type": ["number", "null"],
"minimum": 0
},
"FontEdge": {
"type": ["string", "null"]
"type": ["string", "null"],
"enum": [
"none",
"raised",
"depressed",
"uniform",
"drop_shadow_left",
"drop_shadow_right",
null
]
},
"Color": {
"type": ["string", "null"]
Expand Down Expand Up @@ -103,7 +122,7 @@
{
"enabled": true,
"styles": {
"fontFamily": "Monospace sans-serif",
"fontFamily": "monospaced_serif",
"fontSize": 1,
"fontColor": "#ffffff",
"fontEdge": "none",
Expand Down
2 changes: 1 addition & 1 deletion src/sdks/manage/test/suite/closedCaptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test("ClosedCaptions.enabled()", () => {

test("ClosedCaptions.fontFamily()", () => {
return ClosedCaptions.fontFamily().then((res: string) => {
expect(res).toEqual("monospace");
expect(res).toEqual("monospaced_sanserif");
});
});

Expand Down

0 comments on commit de35cb8

Please sign in to comment.