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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added empty state - Variant 2 #4276

Merged
merged 1 commit into from
Feb 1, 2022
Merged

Conversation

ilayda21
Copy link
Contributor

@ilayda21 ilayda21 commented Jan 25, 2022

Should be merged after #4274

Done

  • Variant 2 empty state is added.

Fixes #1010

QA

Check if PR is ready for release

If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:

  • PR should have one of the following labels to automatically categorise it in release notes:
    • Feature 馃巵, Breaking Change 馃挘, Bug 馃悰, Documentation 馃摑, Maintenance 馃敤.
  • Vanilla version in package.json should be updated relative to the most recent release, following semver convention:
    • if CSS class names are not changed it can be bugfix relesase (x.x.X)
    • if CSS class names are changed/added/removed it should be minor version (x.X.0)
    • see the wiki for more details
  • Any changes to component class names (new patterns, variants, removed or added features) should be listed on the what's new page.
  • Documentation side navigation should be updated with the relevant labels.

@ilayda21 ilayda21 added the Feature 馃巵 New feature or request label Jan 25, 2022
@webteam-app
Copy link

Demo starting at https://vanilla-framework-4276.demos.haus

@lyubomir-popov
Copy link
Contributor

lyubomir-popov commented Jan 28, 2022

@ilayda21 the example I see is a 404, whereas the design shows a search with no results. Am I looking at the right thing?
image
image

@ilayda21
Copy link
Contributor Author

I changed the url sorry about that @lyubomir-popov. I updated the url in the PR.

@lyubomir-popov
Copy link
Contributor

lyubomir-popov commented Jan 28, 2022

Thanks. I know this is built on an existing design mockup, but can't help but notice a bit of a disconnect between text and layout.

The text contains suggestions that feel like consecutive steps but the layout presents those as equal alternatives - left choice or right choice. How about something like this:

    <div class="row">
        <div class="col-4 col-medium-3">
            <h4>Why not try widening your search?<br> You can do this by:</h4>
        </div><div class="col-4 col-medium-3">
            <ul class="p-list">
                <li class="p-list__item is-ticked">Adding alternative words or phrases</li>
                <li class="p-list__item is-ticked">Using individual words instead of phrases</li>
                <li class="p-list__item is-ticked">Trying a different spelling</li>
            </ul>
        </div>
    </div>
<div class="row">
        <hr>
    </div><div class="row">
        <div class="col-4 col-medium-3">
            <h4>Still no luck?</h4>
        </div>
    <div class="col-6 col-medium-3">
              <p class="u-no-margin--bottom">
                  <a href="#">Visit the Ubuntu homepage</a>
              </p>
              <p class="u-no-margin--bottom">
                  <a href="#">Contact us</a>
              </p>
        </div>
    </div>
</div>

The above should look end up looking like this:

image

@ilayda21
Copy link
Contributor Author

@lyubomir-popov can you check it again?

@lyubomir-popov
Copy link
Contributor

Thanks, looks good.

Copy link
Contributor

@bethcollins92 bethcollins92 left a comment

Choose a reason for hiding this comment

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

Looking great Ilayda! I've left a few comments about the HTML. We need to try and use semantically correct elements where possible.

Please see the pastebin with my suggestion on how to structure it

Co-authored-by: ilayda21 <ilayda.cavusoglu@canonical.com>
Copy link
Contributor

@bartaz bartaz left a comment

Choose a reason for hiding this comment

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

Rebased and cleaned up. LGTM.

@bethcollins92
Copy link
Contributor

LGTM!

@bartaz bartaz merged commit d22dc21 into canonical:main Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants