Repository navigation
Added All Tab-Sizes. - #1764
Added All Tab-Sizes.#1764
Conversation
|
Hi @sahilempire ! I don't really understand what you are doing here. I gave you a very detailed review of this work in your other PR: #1762 But then you closed that PR and opened up this one, which doesn't seem to have addressed any of my comments at all. You need to go back and re-read my review. Also, just in case you were not clear on this — you don't need to open a new PR to submit fixes. You can just push more changes to the same branch and it will update the existing PR. |
|
hello @chrisdavidmills , I sincerely sorry for this, but I thought if I have to make changes, then i have to make a new pull request again, sorry, but I am keep improving myself in Open Source World. And I have correct my meta.json file, still getting this unknown error, and still unable to merge my codes. Thanks. |
No need to apologise — git can be very confusing at the best of times. This is a very easy mistake to make when you are just starting out with it.
The error is not unknown. I know exactly why the CI is failing, and I wrote about it in your other PR. Read my feedback carefully, and update your PR as appropriate. |
|
@sahilempire So, your latest change sems to have made the example more incorrect than it was before — the property is called The short version is — an example for tab-size already exists at https://github.com/mdn/interactive-examples/tree/master/live-examples/css-examples/text, so what you need to do is delete your example and improve that one instead, as described in my previus comment. |
|
Hi @chrisdavidmills , I have done all changes as you told me, and the happiness is I'm not getting any error or any conflict, and my codes passed all Travis CI tests. Thanks. |
|
@sahilempire first of all, I've got no idea why you keep writing the property name as Secondly, you've still not resolved this bit of my original comment: "However, one thing does need updating on the existing example. As Will said on his original description — "Note that it's prefixed in Firefox, so the interactive example choices need to set both tab-size and -moz-tab-size." So this means you need to update the choices to include both, e.g. " |
sahilempire
left a comment
There was a problem hiding this comment.
tabe-size to tab-size
sahilempire
left a comment
There was a problem hiding this comment.
Inserting -moz-tab-size with tab-size
|
Hi @chrisdavidmills , I think this time I have done all things correctly, Please check this, and please merge this if okay. Thank you. |
chrisdavidmills
left a comment
There was a problem hiding this comment.
Hi @sahilempire . This still isn't working properly. Did you actually test it locally before submitting this? I'm guessing not. You need to make sure that what you submit actually works before submitting a PR.
This has gone on long enough, so let's get it fixed up.
In tab-size.css , the rules you have included aren't going to do anything because there are no elements in the example to be selected by those selectors. So let's update it to this:
#example-element {
border: 1px solid black;
}
As it is useful for seeing what effect tab-size is having.
In tab-size.html, there are a whole load of issues that I had to fix before it started working. The working code is as follows:
<section id="example-choice-list" class="example-choice-list large" data-property="tabSize">
<div class="example-choice" initial-choice="true">
<pre><code class="language-css">tab-size: 10px;
-moz-tab-size: 10px;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">tab-size: 16px;
-moz-tab-size: 16px;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">tab-size: 24px;
-moz-tab-size: 24px;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">tab-size: 4;
-moz-tab-size: 4;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
</section>
<div id="output" class="output hidden">
<section id="default-example">
<pre id="example-element"> 123</pre>
</section>
</div>
Have a careful look and compare it to your code to see what is different. The biggest issues were:
- The example choices not having the
example-choiceclass on them. - Everything having
initial-choice=trueset on it; only one choice should have this - The outer choice wrapper having
data-property="border-radius"set on it, which should have beendata-property="tabSize"to match the property name given to the example inmeta.json - The actual example at the bottom of the file being completely deleted.
- The CSS code having
<br>tags put in it.
This is quite a lot to take in, so don't worry. I'll add the updates to the PR this time around.
Thanks for your contribution.
|
Congrats on merging your first pull request! 🎉🎉🎉 |
Hello,
I have added all the Tab-Sizes.
Please merge by pull-request.
Thanks.