Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes issue #7366: Adjust Option Orientation in CreateRadio() reference. #7367

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/dom/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,15 +1463,28 @@ p5.prototype.createSelect = function(...args) {
* @example
* <div>
* <code>
* let style = document.createElement('style');
* style.innerHTML = `
* .p5-radio label {
* display: flex;
* align-items: center;
* }
* .p5-radio input {
* margin-right: 5px;
* }
* `;
* document.head.appendChild(style);
*
* let myRadio;
*
* function setup() {
* createCanvas(100, 100);
*
* // Create a radio button element and place it
* // in the top-left corner.
* // in the top-right corner.
Prajyot05 marked this conversation as resolved.
Show resolved Hide resolved
* myRadio = createRadio();
* myRadio.position(0, 0);
* myRadio.class('p5-radio');
* myRadio.size(60);
*
* // Add a few color options.
Expand Down Expand Up @@ -1535,9 +1548,10 @@ p5.prototype.createSelect = function(...args) {
* createCanvas(100, 100);
*
* // Create a radio button element and place it
* // in the top-left corner.
* // in the top-right corner.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here as well, it should be top-left corner.

* myRadio = createRadio();
* myRadio.position(0, 0);
* myRadio.class('p5-radio');
* myRadio.size(50);
*
* // Add a few color options.
Expand Down
Loading