Skip to content

Commit

Permalink
Merge pull request #163 from placetopay-org/feature/PT-7534-options-c…
Browse files Browse the repository at this point in the history
…olors

feat: make sure the color of the selector options is correct
  • Loading branch information
meiyerDev authored Dec 4, 2024
2 parents 95c44cd + cfc62df commit b0aa7fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ApiReader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export const ApiResponses = ({ responses = {} }) => {
onChange={(evt) => setSelected(evt.target.value)}
>
{Object.entries(responses).map(([code]) => (
<option key={`response-${code}`} value={code}>
<option className="text-gray-950" key={`response-${code}`} value={code}>
{code}
</option>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Code.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function CodeGroupHeader({ title, children, selectedIndex, onChange }) {
onChange={(evt) => onChange(evt.target.value)}
>
{Children.map(children, (child, childIndex) => (
<option key={`response-${childIndex}`} value={childIndex}>
<option className="text-gray-950" key={`response-${childIndex}`} value={childIndex}>
{getPanelTitle(child.props)}
</option>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/components/LanguageSwitch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const LanguageSwitch = () => {
onChange={(event) => changeLocale(event.target.value)}
>
{LANGUAGES[locale].map(({ name, code }) => (
<option key={`language-switch-${name}-${code}`} value={code}>
<option className="text-gray-950" key={`language-switch-${name}-${code}`} value={code}>
{name}
</option>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/components/PinpadPlayground.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const Select = ({ id, value, onChange, options }) => (
onChange={onChange}
>
{options.map((option, index) => (
<option key={index} value={option.value}>
<option className="text-gray-950" key={index} value={option.value}>
{option.label}
</option>
))}
Expand Down

0 comments on commit b0aa7fa

Please sign in to comment.