Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.

CampTix Tools: Add placeholder in Purchase date field.#242

Open
donmhico wants to merge 1 commit intoAutomattic:masterfrom
donmhico:meta-trac-4056
Open

CampTix Tools: Add placeholder in Purchase date field.#242
donmhico wants to merge 1 commit intoAutomattic:masterfrom
donmhico:meta-trac-4056

Conversation

@donmhico
Copy link

Copy link
Contributor

@coreymckrill coreymckrill left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @donmhico

This was discussed in our bug scrub today:
https://wordpress.slack.com/archives/C08M59V3P/p1566493484129300

The summary is, let's remove the unconnected screen reader text (see inline comment below) and then this is ready to go.

camptix.php Outdated
<input placeholder="{{ data.placeholder }}" type="text" class="segment-value regular-text" value="{{ data.model.value }}" />
<# if ( data.placeholder.length > 0 ) { #>
<span class="screen-reader-text">{{ data.placeholder }}</span>
<# } #>
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this screen reader text element isn't actually linked to the input, it may not be that useful. For now, I'd say let's remove it, and in a separate PR we could try implementing proper <label> elements for this form, and perhaps other accessibility improvements.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the review @coreymckrill. I've amended the commit that reflects the changes you requested.

https://github.com/Automattic/camptix/pull/242/files#diff-5cb4f0974d7e507f6aa5827e23e12aadL3191-L3197

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants