gui design – Why airbnb put close button of a dialog on top left?

Stack Exchange Network

Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

accessibility – When is it ‘wrong’ to put tabindex=0 on non-interactive content?

Adapt did the wrong thing for the right reason. The blog you referred to had some great information. Change the question from “Is accessibility required?” to “Is accessibility desirable?”. Based on their blog, they have a good concept of what accessibility is but their concept of how to implement accessibility isn’t accurate. They seem to think that those that need accessible accommodations should be segregated by turning on an “accessible mode”. As we know from just about any country’s history, segregation is not a solution.

Their accessibility page says:

All Adapt courses have the accessibility feature built-in. However, it
must be enabled during development by the course author before the
course is published.

So, does the course author have to make the decision whether to turn that feature on or not? Is it up to the course author to decide if accessibility is desirable (the word they used in their blog)? Why is there an option to turn it on? Why is it not always on? Or rather, why is there an option at all? The default should be to build an accessible interface.

That same option/segregation is offered to the end user too.

To activate the accessibility feature while viewing a course, press
the Tab key. A button is displayed: “Turn accessibility on?”

Once the feature is activated, pressing the Tab key navigates the
learner through content. Focused content regions are highlighted with
an outline. And ARIA labels are enabled for assistive technology such
as screen readers.

What’s different about the interface that requires accessibility to be turned on? Any interactive object you can navigate to with the keyboard should always have a valid label or name (which is what ARIA labels give you if you can’t provide a label/name with a native HTML element). Always. Why would you ever not want a valid name for an object? You shouldn’t have to turn that option on.

A user that requires a screen reader to interact with the page does not want to be treated any differently than a full sighted user. They want to navigate to interactive objects using the TAB key just like any other keyboard user and they do not expect to tab to heading or paragraphs or lists or whatever.

Screen reading software has fantastic tools built in that allow for navigation to non-interactive elements. You can press the ‘H’ key to go to the next heading (and hear it read), or for more granularity, press the ‘2’ key to go to the next <h2>. You can press the ‘L’ key to go to the next list, or the ‘I’ (eye) key to go to the next element in a list. Press ‘R’ or ‘D’ (depending on the screen reader) to go to the next “landmark”. None of these elements are natively keyboard accessible and are not expected to be. They should not have tabindex="0".

Now, none of these shortcuts will work if the content author does not use native HTML tags that have built in semantic meaning. That is, use

<h2>Really important info</h2> 

instead of

<div class="big-bold-font">Really important info</div>

Screen reading software does not know that the “big-bold-font” class means the element should be a heading but it definitely knows what an <h2> is. In the latter case, if you have to use a <div>, that’s where ARIA attributes come in:

<div class="big-bold-font" role="heading" aria-level="2">Really important info</div>

With the correct semantic meaning, whether provided by native HTML tags such as <h2> or augmented by using ARIA attributes such as role and aria-level, a screen reader user can easily navigate to these elements without them having tabindex="0"'.

That’s why I think Adapt understands what accessibility is but does not understand how accessibility is used.

So that’s a really, really long answer (sorry) to what could have been a simple answer. Your OP title is

“When is it ‘wrong’ to put tabindex=0 on non-interactive content?”

Answer: Always.

lg monitor – Is there some kind of “config file” I can put on my USB stick for an LG TV to not use the obnoxious “frame interpretation” misfeature?

A family member has a modern LG TV. Like all modern TVs, it’s garbage and full of idiotic misfeatures. One of these is this “frame interpretation” nonsense which makes everything look bizarre when moving around.

There is a maze of menus and submenus and I’ve once “kind of” figured out how to disable this, but it was a ton of work and it was not obvious that it had been turned off fully, and it was a massive pain to turn back on again. (The family member wants it for whatever reason.)

Whenever I show the family member something on the TV, as video files on my USB stick which I stick directly into the TV, I would like to turn this off just for that memstick’s videos.

I imagine some kind of industry-standard (or at least LG-supported) “config file” called TV.conf or something which, if put in the root directory of the USB memstick, will be read and interpreted by the TV for the video files on the memstick. Maybe it could contain frame_interpretation = off; or something?

Is this possible? Is this a thing?

magento2 – Is it acceptable to put lib folder inside module folder structure?

Before I used this code to include some packages:

require_once($this->dir->getPath('lib_internal') . '/vendor/module/nuevomailer/api.php');

Now Magento doesn’t allow to use require_once anymore so I thought that the simplest way without creating another packages just for third party libraries would be to just create lib folder inside existing vendorname/modulename folder and call it like this:

    class Subscriber extends MagentoFrameworkModelAbstractModel{
        protected $mailchimp;
        protected $phpmailer;
        public function _construct(
            VendornameModulenameLibMailchimp $mailchimp,
            VendornameModulenameLibPhpmailer $phpmailer,
        function subscribe(){

Is that acceptable method? I checked Magento modul file structure ( and I couldn’t find lib folder. Is it allowed to put any other folder into module directory?


Write a program that allows you to manage a company's customer database. The clients will be saved in a dictionary in which the key of each client will be their CPF, and the value will be another dictionary with the client's data (name, address, telephone, email, preferred)

Put your website in my signature

1 month – $ 3
6 months – $ 6 (save $ 2)
1 year – $ 10 (save $ 4)

You are paying to advertise your banner in my signature. If these offers are out of your budget, please feel free to send me an offer.

Can't put a Pinterest link on a pin?

Hello everyone,

I created a board with product pins inside, and I'd like to post cover pins on group dashboards that link to that board I created, not content outside of Pinterest. However, the system does not allow me to put a Pinterest link on a pin:
To save an idea you find on Pinterest, use the Save button you find on each Pin. "

Why can a pin only link to content outside of Pinterest, and not to a board?

Thanks for your help

seo – Just post the title as slug or you must put "blog" in WordPress

I have a WordPress website for a business. And they have many pages, custom posts, etc. And they also have a blog.

Currently, her blog URLs look like this:

Main page for blog: 

A blog post page:

My question is, if I change the permalink structure to follow the pattern mentioned below (before a /blog/ in slug) for individual blog posts:

Will SEO improve? However, the website has been live for some time and is having some traffic.

always try to put url with anchor text in descriptions / comments

when creating contextual links / pages it is better to check the box
project> options> "always try to put a url with an anchor text in the descriptions / comments"
because I thought if you are trying to create contextual links and have the option to put a link instead of an article then you could choose the link but if you create an account and I cannot put an article there it is better to check the box so that at least get a link?
a lot of contextual sites allow you to register but not to add an article and I was wondering if this would help