# expandable blocks with enum confusion

**URL:** <https://forum.makecode.com/t/expandable-blocks-with-enum-confusion/7416>\
**Category:** micro:bit\
**Created:** [April 16, 2021, 4:30pm UTC](https://forum.makecode.com/t/expandable-blocks-with-enum-confusion/7416 "2021-04-16T16:30:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilAtKitronik](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@PhilAtKitronik](https://forum.makecode.com/u/PhilAtKitronik)\
**Post date:** [April 16, 2021, 4:30pm UTC](https://forum.makecode.com/t/expandable-blocks-with-enum-confusion/7416/1 "2021-04-16T16:30:47Z")

</div>

Im working on some blocks with a +/- to expand the blocks to show more options. At the moment the one block as an enum dropdown in the expanded look.  
When the block is first expanded the enum is black and not the same colour as the rest of the block.  
Once clicked on it returns to the correct colour. I have tried making the variable a default is the first item on the list but still does it.

Could this purely be a rendering issue or something else going on? Screenshot of the expand block for the first time before any selection is made and code snippet are below.

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/48e44db5d8e5a180739c37a50514523e1134b1f4.png)

```
indent preformatted text by 4 spaces
/**
 * set pixel in OLED
 * @param x is X alis, eg: 0
 * @param y is Y alis, eg: 0
 * @param screen is screen selection
 */
//% blockId="VIEWOLED_set_pixel" block="set pixel at x %x|y %y ||to display %screen"
//% weight=70 blockGap=8
export function pixel(x: number, y: number, screen?: DisplaySelection) {
    if (screen){
        _I2CAddr = screenAddr(screen)
    }
    //else{
    // _I2CAddr = 60;
    //}
}
```
