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

Add 'view source' feature to view code of complete examples #749

Open
iadawn opened this issue Sep 21, 2015 · 6 comments
Open

Add 'view source' feature to view code of complete examples #749

iadawn opened this issue Sep 21, 2015 · 6 comments
Labels

Comments

@iadawn
Copy link
Contributor

iadawn commented Sep 21, 2015

This could be used in multiple places to make it easy to find the code where there are good practice ideas.

@bakkenb
Copy link

bakkenb commented Sep 21, 2015

I like this idea. Would it be a link under the existing example box? Where would this show up for each tip that it could be used for?

@iadawn
Copy link
Contributor Author

iadawn commented Sep 21, 2015

My current idea, is to have a link or icon at the bottom of the example box which would open up a modal window showing a more complete coding example.

@shawna-slh
Copy link
Collaborator

I only looked at this quickly. Did I understand correctly that there is a suggestion to add View Source Code of just alt text? I [strongly] do not support that. The code is simple. Pretty much everyone who needs to do it knows how. Don't add complexity to the Tips pages for it.

I didn't get a chance to look at the others. Sorry.

@nitedog
Copy link

nitedog commented Oct 29, 2015

Here is the list of Tips where we propose to add "View Source Code":

[[
Designing: Interactive elements
Designing: Associated labels
Designing: Feedback
Designing: Alt text
Designing: auto-starting (note: for this example, the link will go to the complete example in the tutorial and will include an icon to indicate it goes elsewhere)
Writing: Alt text
Developing: Non-standard elements
Developing: Keyboard accessibility
]]

@nitedog
Copy link

nitedog commented Oct 29, 2015

Regarding alt-text: in the Designing page, for example, different coding techniques are used, which is why we want to make the source code easier to access.

@davidberman
Copy link

I like that the source code is available, even in simple cases, as it reinforces where source code is approachable for those who would otherwise be intimidated or unsure if they "get it".

@remibetin remibetin transferred this issue from w3c/wai-quick-start Jul 15, 2024
@remibetin remibetin added the tips label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants