Now open the index html file in a browser. Do not worry if the format is askew. Those with some eyesight will notice that the elements are all over the place and the heading and button icon are not side by side.
You should have the html file in editor group 1. Press control+1 to select that editor group. Locate the top div of the drop panel. now go to the line above it and type in a container name we will want to help design. A good size is 500px. So do the following:
div.mycontainer and tab to create a div with the class mycontainer, then Press enter. the closing div will appear on the next line, cut that line . Now fold the drop panel with control+k, control+l. Now go below the folded panel and paste the cclosing div you cut earlier. Now it is in a container.
Now press control + 2 to select the editor group 2. This group will be your css group. Now in this group press control+shift + e to open the file explorer. Open the file index.css. At the top of the css file type @import "droptext.css".
After the body css add the following css: .mycontainer {
width: 500px;
border-style: solid;
border-width: 5px;
} I do the border because I have some vision and it shows me the container. I will remove the border later. The border is optional.
Now your drop panel is constrained to a smaller space. This is about the size of many smart phones, so it's a good size to contain our design.
Now open the drop-text.css file in editor group 2. Now you have 2 css files in group 2. Simply control+tab to toggle between them. You will now start defining the classes. i set the Drop-Panel width to 100%. This means that the max width possible, meaning the container will contain it for you. Later you will remove the container constraints - to give you more dynamic settings. We want the heading and button on one line, So do:
.drop-head {
width: 100%;
display: inline-block;
}
This will force them to be on one line.
In order to get the heading to the left edge and the button to the right edge I used the float attribute:
.drop-heading {
float: left and drop-action-button {
float: right;
}}
The buttons contain the plus and minus images I created using an svg creator tool from Blind svg.com . I was creating SVG's within 15 minutes, and found it was fairly simple to learn. The drop-image and button will require some special SVG settings: filter: inverted(1.0) - this reverses the color and fill : none; is done on the image element. These two settings will make the image and button visible on a dark background. I set the width to 1.2rem. The rem is a root font measurement. I set the height to slightly larger than the normal font size 1.2 since I am using a heading in the same line.
Drop-content and all droptext.css settings are in my css file, So refer to those files for values.
The drop-content div will not show since it has no data, so let us create some quick data using a loremipsum trick of vsCode. Type loremipsum25 followed by the tab key within the drop-content div. Now 25 characters of latin words appear. You can use a smaller number or larger.. This is what I used for min: loremipsum150
between starting and ending paragraph tags.
Now, if you change the class of drop-panel to collapsed and drop-content is still visible to screen readers, That is why you need aria-hidden="true" to hide it from the screen reader as well. Play with it. Have someone with eyesight view it for you or use NVDA object position/coordinates to locate them.