Skip to content

Commit

Permalink
adding dark mode support to outbrain react component
Browse files Browse the repository at this point in the history
adding an attribute on the OUTBRAIN div to enable the choice between dark-mode and light-mode
  • Loading branch information
sazulay-outbrain committed Oct 30, 2024
1 parent 9fbe118 commit 02b173c
Show file tree
Hide file tree
Showing 4 changed files with 3,195 additions and 10,455 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
},
"plugins": ["react"],
"rules": {
"import/prefer-default-export": "off"
"import/prefer-default-export": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off"
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ props Name | Type | Requirement | Description | Example
`data-app-ver`| String | Optional | A version number of the App | "1.0.0"
`obPsub` | String | *Only if instructed by SE, App & Native only* | String value for additional section-level reporting breakdowns. Allowed characters: alphanumeric and underscore '_'. Requires permission from your Sales Engineer or Partner Manager. | "minus1"
`externalId` | String | Optional | String value with maximum of 70 characters for use with the [Engage Variant Reporting API](https://engagereportsapiexternalid.docs.apiary.io/#reference/reports/external-id-report). A maximum of 10K IDs/hour are supported. Contact your Partner Manager for API access. | "id123"
`obDarkMode` | String | Optional | A string value to set dark mode on or off, the options are "true" or "false"| "true"


## Rendering optimisation
Expand Down
Loading

0 comments on commit 02b173c

Please sign in to comment.