Giter VIP home page Giter VIP logo

ckanext-openbudgetsin_theme's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ckanext-openbudgetsin_theme's Issues

Right arrow not clickable

In the menu options only the names are clickable and not the arrows. At the top in "Union Dashboard" arrow is clickable and not the name. Making the whole thing confusing.

Menu

Semantic code for content

I noticed we aren't following semantic rules for HTML code on the website. We don't have an h1 tag on the homepage and we're incorrectly using h3 tags for 'paragraphs'. Here are a couple of instances I noticed

  • The main heading of the website needs to be an <h1> tag but it's an <h2> tag
    <h2 class="home-tagline"> Making India's Budgets open, usable and easy to comprehend</h2>

  • We're using <h3> tags for 'paragraphs'; we should be using the <p> tag here

<div class="banner-description">
    <h3 class="homepage-section-text">
         ...
    </h3>
</div>

Given this, I'm assuming there might be more instances where we're not following the rules. Let me know if you want to do a code walk-through together and fix them.

Revert row style and remove row-fluid style.

Remove .row-fluid class with .row class and restructure content with appropriate div containers with .container. Though the structure works fine in the current state. Adding new styles becomes an issue. Also, this would help us to reduce the extra specific styling for other elements, Thus reducing the overall technical debt by giving in more flexibility.

Ex - Link1 , Link2, Link3

Fix background image aspect ratios

Background images of cards flatten up or their aspect ratios seems messed up in some cards in the homepage while testing for responsiveness.

Make Drop down expand and collapse on hover

The headers links like Datasets and The Portal expand and collapse with event listener - onclick. Change the event listener to mouseover. This is to improve UX by reducing the number of links to access the sub links.

Make the portal theme Screen Reader compatible

Currently, some of the pages aren't compatible with Screen Reader mostly because of missing alternative text for images and labels for search bars. We need to edit HTML templates to add appropriate help text to fix most of these issues.

Few WAVE(http://wave.webaim.org) failing links:
http://wave.webaim.org/report#/https://openbudgetsindia.org/
http://wave.webaim.org/report#/https://openbudgetsindia.org/dataset?res_format=PDF
http://wave.webaim.org/report#/https://openbudgetsindia.org/organization/
http://wave.webaim.org/report#/https://openbudgetsindia.org/budget-basics/

Source: https://groups.google.com/forum/#!topic/datameet/AOmYmWZ4LqE

Remove scale effect on hover to avoid heading and content misalignment

The dashboard heading is accurate in the sense that it accounts for the left padding. And although the code is the same for all other headings, the headings for all other sections are misaligned.

Misaligned 'key features' and 'budget basics' headings

This misalignment has happened because of trying to compensate for the scale effect on hover. We should remove the scaling effect on hover until we figure out a solution that doesn't cause the headings of the different sections to be misaligned.

Dropdown bug on hover

Noticed a weird bug with the dropdown on desktop. When the dropdown is open and there's a mouse hover, the dropdown position changes.
dropdown shifts on mouse hover

Dots aren't aligned in 'Quick links'

For the dots to be aligned we need to use the middot symbol rather than using a full-stop.
image

The code would look something like the following:
<span class="ml-4 link-color">&middot;</span>

Extra `:before` class for dropdown arrow

I was working on some other issues for the dropdown and noticed we have an extra arrow because of a :before class that we don't need. I've modified the image to show the extra arrow, it's harder to spot it otherwise.

extra arrow caused by a before class

Header drop down disappears sometimes while using it

Sometimes the drop down in the header section disappears when we click on a link which is supposed to open nested menu in it. Then again we need to click on the navigation link in the header to get the desired result.

Code and clickable area 'key feature' cards

The HTML code for cards in 'key features', and I'm not sure if this is the case everywhere, seems rather complicated. Here's the current code:

<div class="feature ml-24">
    <a href="https://openbudgetsindia.org/dataset?res_format=CSV" target="_blank">
        <span class="card-link-container"></span>
    </a>
    <div class="image-container dataset-icon">
        <!-- <img class="banner-image" alt="Explore machine readable Datasets" src="Key_features_icon-22.png"> -->
    </div>
    <div class="text-container mt-8">
        <h4>
            <a href="/dataset?res_format=CSV" target="_blank">
                Machine Readable Datasets
            </a>
        </h4>
    </div>
</div>


The first couple of lines seems unnecessary?

<a href="https://openbudgetsindia.org/dataset?res_format=CSV" target="_blank">
    <span class="card-link-container"></span>
</a>


Why are we doing this? Instead we could do the following,

<div class="feature ml-24">
    <a href="https://openbudgetsindia.org/dataset?res_format=CSV">
        <div class="image-container dataset-icon">
            <!-- <img class="banner-image" alt="Explore machine readable Datasets" src="Key_features_icon-22.png"> -->
        </div>
        <div class="text-container mt-8">
            <h4>
                <a href="/dataset?res_format=CSV" target="_blank">
                    Machine Readable Datasets
                </a>
            </h4>
        </div>
    </a>
</div>

Wrap the <a> tag around the content, that way we don't have to create pseudo span elements?

Mobile Header | Home Page

Issue Details

  • Icon for mobile menu post redisign looks compressed.
  • The hamburger menu icon looks out of place.

Device Details
iPhone XS / iOS14 / Firefox

image

Separate CSS Files for separate sections

Separate CSS sections for different templates. This would help the contributors to change and evolve the design. Currently, most of the CSS styles are present in a consolidated base file.

'Get Started' font weight in 'Budget Basics'

The font-weight for some reason seems lighter than usual, we'll need too add the following line in to ensure 'Get Started' has the correct weight

.key-features-section .budget-basics-card .image-container .link-button {
  font-weight: normal;
}

show count of organizations/datasets

currently, the count of datasets and tiers of governance is not showing or showing the wrong count for datasets. Need to show the exact count for tiers of governance as well as for total datasets available.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.