Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
26 changes: 13 additions & 13 deletions src/sections/Community/Web-based-from/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ const WebBasedForm = () => {
<Field type="url" placeholder="https://twitter.com/" className="text-field" id="twitter" name="twitter" pattern="http(s?)(:\/\/)((www.)?)(twitter|x).com(\/)([a-zA-z0-9\-_]+)" />
<label htmlFor="linkedin" className="form-name">Linkedin</label>
<Field type="url" placeholder="https://www.linkedin.com/" className="text-field" id="linkedin" name="linkedin" />
<label htmlFor="tshirtSize" className="form-name">T-shirt size</label>
<div role="group" aria-labelledby="my-radio-group">
<label id="tshirtSize-label" className="form-name">T-shirt size</label>
<div role="group" aria-labelledby="tshirtSize-label">
<label>
<Field type="radio" name="tshirtSize" value="XS" />
XS
Expand Down Expand Up @@ -212,30 +212,30 @@ const WebBasedForm = () => {
</p>

<div className="center">
<div className={role === "Contributor" ? "option active" : "option"} onClick={() => {
<button type="button" aria-pressed={role === "Contributor"} className={role === "Contributor" ? "option active" : "option"} onClick={() => {
setRole("Contributor");
}}
>
I'm here as a Contributor
</div>
<div className={role === "Developer" ? "option active" : "option"} onClick={() => {
</button>
<button type="button" aria-pressed={role === "Developer"} className={role === "Developer" ? "option active" : "option"} onClick={() => {
setRole("Developer");
}}
>
I'm here as a User
</div>
<div className={role === "User" ? "option active" : "option"} onClick={() => {
</button>
<button type="button" aria-pressed={role === "User"} className={role === "User" ? "option active" : "option"} onClick={() => {
setRole("User");
}}
>
I'm here as a User and Contributor
</div>
<div className={role === "Bystander" ? "option active" : "option"} onClick={() => {
</button>
<button type="button" aria-pressed={role === "Bystander"} className={role === "Bystander" ? "option active" : "option"} onClick={() => {
setRole("Bystander");
}}
>
I'm here as a Bystander <br /><small>(here to learn and absorb passively)</small>
</div>
</button>
<br /><br />
<div className="btn-wrapper">
<button onClick={laststep} className="btn-prev"><span className="back">&larr;</span> Previous Step</button>
Expand Down Expand Up @@ -522,8 +522,8 @@ const WebBasedForm = () => {
<span className="checkbox-label">Other</span>
</label>

<label htmlFor="interestToShareContribution" className="form-name">Now or eventually, would you like to speak or write about your works in the community and/or on the projects?<span className="required-sign">*</span></label>
<div role="group" aria-labelledby="my-radio-group">
<label id="interestToShareContribution-label" className="form-name">Now or eventually, would you like to speak or write about your works in the community and/or on the projects?<span className="required-sign">*</span></label>
<div role="group" aria-labelledby="interestToShareContribution-label">
<label>
<Field type="radio" name="interestToShareContribution" value="Yes" required />
Yes
Expand Down Expand Up @@ -648,7 +648,7 @@ const WebBasedForm = () => {
}
{
stepNumber === 1 &&
<MemberFormSecond />
MemberFormSecond()
}
{
stepNumber === 2 &&
Expand Down
8 changes: 8 additions & 0 deletions src/sections/Community/Web-based-from/webform.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ const Webform = styled.div`
color: #00B39F;
text-align: center;
padding: 25px 10px;
border: none;
font: inherit;
display: block;
width: calc(100% - 10px);
}
.option:focus-visible{
outline: 2px solid ${props => props.theme.green00B39FToGreen3C494F};
outline-offset: 2px;
}
.option:hover{
background-color: #00B39F;
Expand Down